pt.digitalis.dif.exception.codegen
Class AnnotationMisuseException

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
All Implemented Interfaces:
Serializable, IContextException
Direct Known Subclasses:
IllegalAnnotationUsage, IncompatiblePrimaryAnnotationsException

public abstract class AnnotationMisuseException
extends DIFCodeGenerationException

Represents a DEM annotation misuse exception. It's an abstract class whose translate() must be implemented on the subclasses. Defines the keys that should be used on the context by all subclasses.

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

Nested Class Summary
static class AnnotationMisuseException.ContextKeys
          Nested static class which defines the keys used on the exception context.
 
Constructor Summary
AnnotationMisuseException(String reason, Exception exception, Map<String,Object> exceptionContext)
          Constructs a new AnnotationMisuseException from a reason, an exception and an exception context.
AnnotationMisuseException(String reason, Map<String,Object> exceptionContext)
          Constructs a new AnnotationMisuseException 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
 

Constructor Detail

AnnotationMisuseException

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

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

AnnotationMisuseException

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

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


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