net.sf.daileon.notsupported
Class DuplicateAnnotationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.sf.daileon.notsupported.DuplicateAnnotationException
All Implemented Interfaces:
Serializable

public class DuplicateAnnotationException
extends Exception

The DuplicateAnnotationException is thrown when a domain annotation is evaluated to 2 equal annotations. This is likely to happen when a domain annotation is annotated with other domain annotation, or when the element has the annotation, and the domain annotation evaluates to the same annotation.

Version:
1.0 01/01/2010
Author:
Roberto Perillo
See Also:
Serialized Form

Field Summary
private  org.objectweb.asm.attrs.Annotation annotation
          The Annotation duplicated object
private static long serialVersionUID
          serialVersionUID
 
Constructor Summary
DuplicateAnnotationException()
          Constructs a new exception with null as its detail message.
DuplicateAnnotationException(org.objectweb.asm.attrs.Annotation annotation)
          Constructs a new exception with null as its detail message and a Annotation object, representing the duplicate annotation.
DuplicateAnnotationException(org.objectweb.asm.attrs.Annotation annotation, String message)
          Constructs a new exception with the specified detail message and the duplicate annotation.
DuplicateAnnotationException(org.objectweb.asm.attrs.Annotation annotation, String message, Throwable cause)
          Constructs a new exception with the specified detail message, cause and the duplicate annotation.
DuplicateAnnotationException(org.objectweb.asm.attrs.Annotation annotation, Throwable cause)
          Constructs a new exception with the duplicate annotation, the specified cause and a detail message of (cause == null ?
 
Method Summary
 org.objectweb.asm.attrs.Annotation getAnnotation()
          Gets the duplicate annotation.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
serialVersionUID

See Also:
Constant Field Values

annotation

private org.objectweb.asm.attrs.Annotation annotation
The Annotation duplicated object

Constructor Detail

DuplicateAnnotationException

public DuplicateAnnotationException()
Constructs a new exception with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).


DuplicateAnnotationException

public DuplicateAnnotationException(org.objectweb.asm.attrs.Annotation annotation)
Constructs a new exception with null as its detail message and a Annotation object, representing the duplicate annotation. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).


DuplicateAnnotationException

public DuplicateAnnotationException(org.objectweb.asm.attrs.Annotation annotation,
                                    String message,
                                    Throwable cause)
Constructs a new exception with the specified detail message, cause and the duplicate annotation.

Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

Parameters:
message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
annotation - The duplicate annotation.

DuplicateAnnotationException

public DuplicateAnnotationException(org.objectweb.asm.attrs.Annotation annotation,
                                    String message)
Constructs a new exception with the specified detail message and the duplicate annotation. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).

Parameters:
annotation - The duplicate annotation.
message - The detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.

DuplicateAnnotationException

public DuplicateAnnotationException(org.objectweb.asm.attrs.Annotation annotation,
                                    Throwable cause)
Constructs a new exception with the duplicate annotation, the specified cause and a detail message of (cause == null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Parameters:
annotation - The duplicate annotation.
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)
Method Detail

getAnnotation

public org.objectweb.asm.attrs.Annotation getAnnotation()
Gets the duplicate annotation.

Returns:
The duplicate annotation.