Skip to content

Package: ExceptionConstans

ExceptionConstans

Coverage

1: package de.fhdw.wtf.common.constants.referencer;
2:
3: import de.fhdw.wtf.common.exception.referencer.ConstructorReferencerExceptions;
4:
5: /**
6: * Contains Exceptions Messages for Referencer.
7: */
8: public final class ExceptionConstans {
9:         
10:         /**
11:          * The provided Type does not match to any given Types.
12:          */
13:         public static final String INVALID_TYPE_REFERENCE_EXCEPTION_MESSAGE = "The provided Type does "
14:                         + "not match to any given Types: ";
15:         
16:         /**
17:          * The refencer found exceptions in the abstract syntax tree.
18:          */
19:         public static final String REFERENCING_NOT_SUCCESSFUL_EXCEPTION_MESSAGE = "The refencer found "
20:                         + "exceptions in the abstract syntax tree.";
21:         
22:         /**
23:          * The provided TypeReference is not in ReferenceByName-State.
24:          */
25:         public static final String WRONG_STATE_EXCEPTION_MESSAGE = "The provided TypeProxy " + "is not in ByNameState: ";
26:         
27:         /**
28:          * Referenced constructors must exist.
29:          */
30:         public static final String CONSTRUCTOR_REFERENCE_MISMATCH_MESSAGE = "No constructor matches with this reference.";
31:         
32:         /**
33:          * Duplicate constructors should not exist because they cannot be referenced unambiguously.
34:          */
35:         public static final String DUPLICATE_CONSTRUCOR_MESSAGE =
36:                         "Found duplicate constructors while trying to match a constructor reference: ";
37:         
38:         /**
39:          * COnstructors should only be called along a hierarchy.
40:          */
41:         public static final String CYCLIC_CONSTRUCTOR_CALL_MESSAGE = "Cyclic constructor call found for: ";
42:         
43:         /**
44:          * Exception message for {@link ConstructorReferencerExceptions}.
45:          */
46:         public static final String CONSTRUCTOR_REFERENCER_EXCEPTION_OCCURED =
47:                         "An exception occured when referencing constructors.";
48:         
49:         /**
50:          * Constructor of {@link ExceptionConstans}.
51:          */
52:         private ExceptionConstans() {
53:         }
54:         
55: }