public class ValidationDeclarationException extends IllegalStateException
Validation
annotation
is not legal.Constructor and Description |
---|
ValidationDeclarationException(Annotation annotation,
String message)
Constructs a new
ValidationDeclarationException with the
specified annotation and detail message. |
ValidationDeclarationException(Annotation annotation,
String message,
Throwable cause)
Constructs a new
ValidationDeclarationException with the
specified annotation, detail message and cause. |
ValidationDeclarationException(Annotation annotation,
Throwable cause)
Constructs a new
ValidationDeclarationException with the
specified annotation and cause. |
Modifier and Type | Method and Description |
---|---|
Annotation |
getAnnotation()
Returns
Validation annotation. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ValidationDeclarationException(Annotation annotation, String message)
ValidationDeclarationException
with the
specified annotation and detail message.annotation
- Validation
annotation.message
- Detail message.public ValidationDeclarationException(Annotation annotation, String message, Throwable cause)
ValidationDeclarationException
with the
specified annotation, detail message and cause.annotation
- Validation
annotation.message
- Detail message.cause
- Cause to be wrapped.public ValidationDeclarationException(Annotation annotation, Throwable cause)
ValidationDeclarationException
with the
specified annotation and cause.annotation
- Validation
annotation.cause
- Cause to be wrapped.public Annotation getAnnotation()
Validation
annotation.Validation
annotation.Copyright © 2011–2020 FoxLabs. All rights reserved.