public class InvalidAnnotationException extends FormattedRuntimeException
Constructor and Description |
---|
InvalidAnnotationException(String message,
Object... args)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
assertNoInvalidAnnotations(MethodInfo m,
Class<? extends Annotation>... a)
Throws an
InvalidAnnotationException if the specified method contains any of the specified annotations. |
getMessage
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public InvalidAnnotationException(String message, Object... args)
message
- Message.args
- Arguments.@SafeVarargs public static void assertNoInvalidAnnotations(MethodInfo m, Class<? extends Annotation>... a) throws InvalidAnnotationException
InvalidAnnotationException
if the specified method contains any of the specified annotations.m
- The method to check.a
- The annotations to check for.InvalidAnnotationException
- Annotation was used in an invalid location.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.