| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| IncompatiblePrimaryAnnotationsException |
|
| 1.0;1 |
| 1 | 0 | /** 2007, Digitalis Informatica. All rights reserved. |
| 2 | * | |
| 3 | * Distribuicao e Gestao de Informatica, Lda. | |
| 4 | * Estrada de Paco de Arcos num.9 - Piso -1 | |
| 5 | * 2780-666 Paco de Arcos | |
| 6 | * Telefone: (351) 21 4408990 | |
| 7 | * Fax: (351) 21 4408999 | |
| 8 | * http://www.digitalis.pt | |
| 9 | */ | |
| 10 | ||
| 11 | package pt.digitalis.dif.exception.codegen; | |
| 12 | ||
| 13 | import java.util.Map; | |
| 14 | ||
| 15 | /** | |
| 16 | * Exception raised by the validation module when two incompatible primary DEM Annotations are used on the same element. | |
| 17 | * | |
| 18 | * @author Rodrigo Gonçalves <a href="mailto:rgoncalves@digitalis.pt">rgoncalves@digitalis.pt</a><br/> | |
| 19 | * @created 2007/11/29 | |
| 20 | */ | |
| 21 | public class IncompatiblePrimaryAnnotationsException extends AnnotationMisuseException { | |
| 22 | ||
| 23 | /** The message associated with incompatible primary annotation misuse. */ | |
| 24 | final static public String INCOMPATIBLE_PRIMARY_ANNOTATIONS_MESSAGE = "Incompatible primary annotations used on the same element!"; | |
| 25 | ||
| 26 | /** The tag for 'class scope' annotations. */ | |
| 27 | final static public String CLASS_SCOPE = "CLASS SCOPE"; | |
| 28 | ||
| 29 | /** The tag for 'method scope' annotations. */ | |
| 30 | final static public String METHOD_SCOPE = "METHOD SCOPE"; | |
| 31 | ||
| 32 | /** The tag for 'attribute scope' annotations. */ | |
| 33 | final static public String ATTRIBUTE_SCOPE = "ATTRIBUTE SCOPE"; | |
| 34 | ||
| 35 | /** Serial Version ID. */ | |
| 36 | private static final long serialVersionUID = 7696717647937187244L; | |
| 37 | ||
| 38 | /** | |
| 39 | * Constructs a new IncompatiblePrimaryAnnotationsException from a reason and an exception context. | |
| 40 | * | |
| 41 | * @param reason | |
| 42 | * the exception reason. | |
| 43 | * @param exceptionContext | |
| 44 | * the exception context. | |
| 45 | */ | |
| 46 | public IncompatiblePrimaryAnnotationsException(String reason, Map<String, Object> exceptionContext) { | |
| 47 | 0 | super(reason, exceptionContext); |
| 48 | 0 | } |
| 49 | ||
| 50 | /** | |
| 51 | * Constructs a new IncompatiblePrimaryAnnotationsException from a reason, an exception and an exception context. | |
| 52 | * | |
| 53 | * @param reason | |
| 54 | * the exception reason. | |
| 55 | * @param exception | |
| 56 | * the exception to encapsulate. | |
| 57 | * @param exceptionContext | |
| 58 | * the exception context. | |
| 59 | */ | |
| 60 | public IncompatiblePrimaryAnnotationsException(String reason, Exception exception, | |
| 61 | Map<String, Object> exceptionContext) { | |
| 62 | 0 | super(reason, exception, exceptionContext); |
| 63 | 0 | } |
| 64 | } |