pt.digitalis.dif.exception.codegen
Class IncompatiblePrimaryAnnotationsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by pt.digitalis.dif.exception.DIFException
              extended by pt.digitalis.dif.exception.codegen.DIFCodeGenerationException
                  extended by pt.digitalis.dif.exception.codegen.AnnotationMisuseException
                      extended by pt.digitalis.dif.exception.codegen.IncompatiblePrimaryAnnotationsException
All Implemented Interfaces:
Serializable, IContextException

public class IncompatiblePrimaryAnnotationsException
extends AnnotationMisuseException

Exception raised by the validation module when two incompatible primary DEM Annotations are used on the same element.

Author:
Rodrigo Gonçalves rgoncalves@digitalis.pt
See Also:
Serialized Form
Created on:
2007/11/29

Nested Class Summary
 
Nested classes/interfaces inherited from class pt.digitalis.dif.exception.codegen.AnnotationMisuseException
AnnotationMisuseException.ContextKeys
 
Field Summary
static String ATTRIBUTE_SCOPE
          The tag for 'attribute scope' annotations.
static String CLASS_SCOPE
          The tag for 'class scope' annotations.
static String INCOMPATIBLE_PRIMARY_ANNOTATIONS_MESSAGE
          The message associated with incompatible primary annotation misuse.
static String METHOD_SCOPE
          The tag for 'method scope' annotations.
 
Constructor Summary
IncompatiblePrimaryAnnotationsException(String reason, Exception exception, Map<String,Object> exceptionContext)
          Constructs a new IncompatiblePrimaryAnnotationsException from a reason, an exception and an exception context.
IncompatiblePrimaryAnnotationsException(String reason, Map<String,Object> exceptionContext)
          Constructs a new IncompatiblePrimaryAnnotationsException from a reason and an exception context.
 
Method Summary
 
Methods inherited from class pt.digitalis.dif.exception.DIFException
addToExceptionContext, getExceptionContext, getRenderedExceptionContext, setExceptionContext
 
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

INCOMPATIBLE_PRIMARY_ANNOTATIONS_MESSAGE

public static final String INCOMPATIBLE_PRIMARY_ANNOTATIONS_MESSAGE
The message associated with incompatible primary annotation misuse.

See Also:
Constant Field Values

CLASS_SCOPE

public static final String CLASS_SCOPE
The tag for 'class scope' annotations.

See Also:
Constant Field Values

METHOD_SCOPE

public static final String METHOD_SCOPE
The tag for 'method scope' annotations.

See Also:
Constant Field Values

ATTRIBUTE_SCOPE

public static final String ATTRIBUTE_SCOPE
The tag for 'attribute scope' annotations.

See Also:
Constant Field Values
Constructor Detail

IncompatiblePrimaryAnnotationsException

public IncompatiblePrimaryAnnotationsException(String reason,
                                               Map<String,Object> exceptionContext)
Constructs a new IncompatiblePrimaryAnnotationsException from a reason and an exception context.

Parameters:
reason - the exception reason.
exceptionContext - the exception context.

IncompatiblePrimaryAnnotationsException

public IncompatiblePrimaryAnnotationsException(String reason,
                                               Exception exception,
                                               Map<String,Object> exceptionContext)
Constructs a new IncompatiblePrimaryAnnotationsException from a reason, an exception and an exception context.

Parameters:
reason - the exception reason.
exception - the exception to encapsulate.
exceptionContext - the exception context.


Copyright © 2014 Digitalis Informática Lda. All Rights Reserved.