|
4 | 4 |
|
5 | 5 | public enum CoreTranslationError implements ContractError {
|
6 | 6 |
|
| 7 | + CIRCULAR_TRANSLATOR_DEPENDENCIES("Circular translator dependencies: "), |
| 8 | + DUPLICATE_CLASSREF("Duplicate ClassRef"), |
| 9 | + DUPLICATE_CLASSREF_SCENARIO_PAIR("Duplicate ClassRef and Scenario Pair"), |
| 10 | + DUPLICATE_DEPENDENCY("Duplicate Dependency"), |
| 11 | + DUPLICATE_INPUT_PATH("Duplicate Input Path"), |
| 12 | + DUPLICATE_OUTPUT_PATH("Duplicate Output Path"), |
| 13 | + DUPLICATE_TRANSLATOR("Duplicate Translator"), |
| 14 | + DUPLICATE_TRANSLATION_SPEC("Duplicate TranslationSpec"), |
| 15 | + INVALID_TRANSLATION_ENGINE_CLASS_REF( |
| 16 | + "The given Translation Engine classRef does not match the class of the actual Translation Engine"), |
| 17 | + INVALID_TRANSLATION_ENGINE_BUILDER_CLASS_REF( |
| 18 | + "The given Translation Engine Builder classRef does not match the class of the actual Translation Engine Builder"), |
| 19 | + INVALID_OUTPUT_CLASSREF("The given class does not have a output file path associated with it."), |
| 20 | + INVALID_OUTPUT_PATH( |
| 21 | + "The given output file path does not exist. While the file will be created on write, the directory will not."), |
| 22 | + INVALID_INPUT_PATH("The given input file path does not exist"), |
| 23 | + MISSING_TRANSLATOR("Missing Translator: "), |
| 24 | + NO_TRANSLATION_ENGINES("There are no translation engines added to this controller."), |
7 | 25 | NULL_TRANSLATOR_ID("Null TranslatorId"),
|
8 | 26 | NULL_TRANSLATOR("Null Translator"),
|
9 | 27 | NULL_TRANSLATION_ENGINE_BUILDER("Null Translation Engine Builder"),
|
10 | 28 | NULL_TRANSLATION_ENGINE("Null Translation Engine"),
|
11 | 29 | NULL_OBJECT_FOR_TRANSLATION("The object to be translated was null"),
|
12 |
| - INVALID_TRANSLATION_ENGINE( |
13 |
| - "The given Translation Engine classRef does not match the class of the actual Translation Engine"), |
14 |
| - INVALID_TRANSLATION_ENGINE_BUILDER( |
15 |
| - "The given Translation Engine Builder classRef does not match the class of the actual Translation Engine Builder"), |
16 |
| - DUPLICATE_TRANSLATOR("Duplicate Translator"), |
17 |
| - MISSING_TRANSLATOR("Missing Translator: "), |
18 |
| - CIRCULAR_TRANSLATOR_DEPENDENCIES("Circular translator dependencies: "), |
19 | 30 | NULL_INIT_CONSUMER("Null Initilizer Consumer"),
|
20 | 31 | NULL_DEPENDENCY("Null dependency"),
|
21 |
| - DUPLICATE_DEPENDENCY("Duplicate Dependency"), |
22 | 32 | NULL_PATH("Null Path"),
|
23 |
| - DUPLICATE_INPUT_PATH("Duplicate Input Path"), |
24 |
| - INVALID_INPUT_PATH("The given input file path does not exist"), |
25 | 33 | NULL_CLASS_REF("Null Class Ref"),
|
26 |
| - INVALID_OUTPUT_CLASSREF("The given class does not have a output file path associated with it."), |
27 |
| - DUPLICATE_OUTPUT_PATH("Duplicate Output Path"), |
28 |
| - INVALID_OUTPUT_PATH( |
29 |
| - "The given output file path does not exist. While the file will be created on write, the directory will not."), |
30 |
| - DUPLICATE_CLASSREF_SCENARIO_PAIR("Duplicate ClassRef and Scenario Pair"), |
31 |
| - DUPLICATE_CLASSREF("Duplicate ClassRef"), |
32 |
| - UNKNOWN_CLASSREF("No object has been read in with the specified classRef"), |
33 | 34 | NULL_TRANSLATION_SPEC("Null TranslationSpec"),
|
34 | 35 | NULL_TRANSLATION_SPEC_APP_CLASS("Null TranslationSpec App Class"),
|
35 | 36 | NULL_TRANSLATION_SPEC_INPUT_CLASS("Null TranslationSpec Input Class"),
|
36 |
| - DUPLICATE_TRANSLATION_SPEC("Duplicate TranslationSpec"), |
37 | 37 | UNKNOWN_TRANSLATION_SPEC("No translation spec was provided for the given class"),
|
38 | 38 | UNITIALIZED_TRANSLATION_SPEC("TranslationSpec not initialized"),
|
39 |
| - UNKNOWN_OBJECT("Object is not Translatable by this TranslationSpec"); |
| 39 | + UNINITIALIZED_TRANSLATORS( |
| 40 | + "Translators were added to the builder but were not initialized. Make sure to call super.initTranslators() during your custom engine build method"), |
| 41 | + UNKNOWN_OBJECT("Object is not Translatable by this TranslationSpec"), |
| 42 | + UNKNWON_TRANSLATION_ENGINE_TYPE("Translation Engine Type was not set"), |
| 43 | + UNKNOWN_CLASSREF("No object has been read in with the specified classRef"); |
40 | 44 |
|
41 | 45 | private final String description;
|
42 | 46 |
|
|
0 commit comments