aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/junit/internal/runners/rules/ValidationError.java
blob: 31bd66019e09f6ae22bf02d499aa52c978058e69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package org.junit.internal.runners.rules;

import org.junit.runners.model.FrameworkMember;

import java.lang.annotation.Annotation;

class ValidationError extends Exception {

    private static final long serialVersionUID = 3176511008672645574L;

    public ValidationError(FrameworkMember<?> member, Class<? extends Annotation> annotation, String suffix) {
        super(String.format("The @%s '%s' %s", annotation.getSimpleName(), member.getName(), suffix));
    }
}