org.codehaus.backport175.compiler.parser
Class AnnotationValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.codehaus.backport175.compiler.CompilerException
org.codehaus.backport175.compiler.parser.ParseException
org.codehaus.backport175.compiler.parser.AnnotationValidationException
- All Implemented Interfaces:
- java.io.Serializable
public class AnnotationValidationException
- extends ParseException
Thrown when error in the validation of the values of the annotations.
Those errors should not interrupts the compilation since ties to one single annotation
- Author:
- Jonas Bonér
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnnotationValidationException
public AnnotationValidationException(java.lang.String message)
- Sets the message for the exception.
- Parameters:
message
- the message
AnnotationValidationException
public AnnotationValidationException(java.lang.String message,
SourceLocation location)
- Sets the message and location for the exception.
- Parameters:
message
- the messagelocation
-
AnnotationValidationException
public AnnotationValidationException(java.lang.String message,
java.lang.Throwable throwable)
- Sets the message for the exception and the original exception being wrapped.
- Parameters:
message
- the detail of the error messagethrowable
- the original exception
setLocation
public void setLocation(SourceLocation location)
- Update the source location
- Parameters:
location
-