org.codehaus.backport175.compiler.parser
Class AnnotationValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.codehaus.backport175.compiler.CompilerException
                  extended by org.codehaus.backport175.compiler.parser.ParseException
                      extended by 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

Field Summary
 
Fields inherited from class org.codehaus.backport175.compiler.CompilerException
m_originalException, m_sourceLocation
 
Constructor Summary
AnnotationValidationException(java.lang.String message)
          Sets the message for the exception.
AnnotationValidationException(java.lang.String message, SourceLocation location)
          Sets the message and location for the exception.
AnnotationValidationException(java.lang.String message, java.lang.Throwable throwable)
          Sets the message for the exception and the original exception being wrapped.
 
Method Summary
 void setLocation(SourceLocation location)
          Update the source location
 
Methods inherited from class org.codehaus.backport175.compiler.CompilerException
getLocation, printStackTrace, printStackTrace, printStackTrace
 
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
 

Constructor Detail

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 message
location -

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 message
throwable - the original exception
Method Detail

setLocation

public void setLocation(SourceLocation location)
Update the source location

Parameters:
location -