View Javadoc

1   /*
2    ErrorConstants.java
3    Creation date : 2/07/2010
4    Copyright © Benjamin Croizet (graffity2199@yahoo.fr)
5   
6    This program is free software; you can redistribute it and/or
7    modify it under the terms of the GNU General Public License
8    or GNU Lesser General Public License as published by the
9    Free Software Foundation; either version 3 of the License,
10   or (at your option) any later version.
11  
12   This program is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   GNU General Public License for more details.
16  
17   You should have received copies of the GNU General Public License
18   and GNU Lesser General Public License along with this program;
19   if not, write to the Free Software Foundation, Inc.,
20   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
21   http://www.fsf.org/licensing/licenses/gpl.html
22   http://www.gnu.org/licenses/lgpl.html
23   */
24  
25  package net.sourceforge.plantumldependency.cli.constants.log;
26  
27  /**
28   * The class which defines all error messages constants which are written in the log file. The
29   * messages also contains the error code.
30   *
31   * @author Benjamin Croizet (<a href="mailto:graffity2199@yahoo.fr>graffity2199@yahoo.fr</a>)
32   * @since 1.0.0
33   * @version 1.4.0
34   */
35  public final class ErrorConstants {
36  
37      /** The bad pattern argument error message. */
38      public static final String BAD_PATTERN_ARGUMENT_ERROR = "[error-plantuml-dependency-cli-000] : Can't parse option argument \"{0}\", it isn't a valid pattern";
39  
40      /** The base directory option null error message. */
41      public static final String BASE_DIRECTORY_OPTION_NULL_ERROR = "[error-plantuml-dependency-cli-001] : The base directory option is null";
42  
43      /** The C++ not implemented yet error message. */
44      public static final String CPP_NOT_IMPLEMENTED_YET_ERROR = "[error-plantuml-dependency-cli-002] : CPP isn't implemented yet, should come in a next release ;-)";
45  
46      /** The dependency name null error message. */
47      public static final String DEPENDENCY_NAME_NULL_ERROR = "[error-plantuml-dependency-cli-003] : The dependency name is null";
48  
49      /** The dependency null error message. */
50      public static final String DEPENDENCY_NULL_ERROR = "[error-plantuml-dependency-cli-004] : The dependency is null";
51  
52      /** The dependency type null error message. */
53      public static final String DEPENDENCY_TYPE_NULL_ERROR = "[error-plantuml-dependency-cli-005] : The dependency type is null";
54  
55      /** The display name option null error message. */
56      public static final String DISPLAY_NAME_OPTION_NULL_ERROR = "[error-plantuml-dependency-cli-006] : The display name option is null";
57  
58      /** The display package name option null error message. */
59      public static final String DISPLAY_PACKAGE_NAME_OPTION_NULL_ERROR = "[error-plantuml-dependency-cli-007] : The display package name option is null";
60  
61      /** The display type option null error message. */
62      public static final String DISPLAY_TYPE_OPTION_NULL_ERROR = "[error-plantuml-dependency-cli-008] : The display type option is null";
63  
64      /** The exclude option null error message. */
65      public static final String EXCLUDE_OPTION_NULL_ERROR = "[error-plantuml-dependency-cli-009] : The exclude option is null";
66  
67      /** The impossible java parent type null error message. */
68      public static final String IMPOSSIBLE_JAVA_PARENT_TYPE_NULL_ERROR = "[error-plantuml-dependency-cli-010] : The java parent type \"{0}\" is not available for this java type \"{1}\"";
69  
70      /** The include option null error message. */
71      public static final String INCLUDE_OPTION_NULL_ERROR = "[error-plantuml-dependency-cli-011] : The include option is null";
72  
73      /** The java annotation type name null error message. */
74      public static final String JAVA_ANNOTATION_TYPE_NAME_NULL_ERROR = "[error-plantuml-dependency-cli-012] : The java annotation type name is null";
75  
76      /** The java annotation type null error message. */
77      public static final String JAVA_ANNOTATION_TYPE_PACKAGE_NAME_NULL_ERROR = "[error-plantuml-dependency-cli-013] :  The java annotation type package name is null";
78  
79      /** The java parent type name null error message. */
80      public static final String JAVA_PARENT_TYPE_NAME_NULL_ERROR = "[error-plantuml-dependency-cli-014] : The java parent type name is null";
81  
82      /** The java parent type null error message. */
83      public static final String JAVA_PARENT_TYPE_NULL_ERROR = "[error-plantuml-dependency-cli-015] : The java parent type is null";
84  
85      /** The java parent type package name null error message. */
86      public static final String JAVA_PARENT_TYPE_PACKAGE_NAME_NULL_ERROR = "[error-plantuml-dependency-cli-016] : The java parent type package name is null";
87  
88      /** The parent type string not empty error message. */
89      public static final String JAVA_PARENT_TYPE_STRING_NOT_EMPTY_NULL_ERROR = "[error-plantuml-dependency-cli-017] : The java parent type string \"{0}\" should be null for this java type \"{1}\"";
90  
91      /** The unknown java parent type error message. */
92      public static final String JAVA_PARENT_TYPE_UNKNOWN_ERROR = "[error-plantuml-dependency-cli-018] : The java parent type \"{0}\" is unknown";
93  
94      /** The java type annotations dependencies null error message. */
95      public static final String JAVA_TYPE_ANNOTATIONS_NULL_ERROR = "[error-plantuml-dependency-cli-019] : The java type annotations dependencies is null";
96  
97      /** The java type can't be extracted error message. */
98      public static final String JAVA_TYPE_CANT_BE_EXTRACTED_ERROR = "[error-plantuml-dependency-cli-020] : The java type can't be extracted from the content \"{0}\"";
99  
100     /** The java type extensions dependencies null error message. */
101     public static final String JAVA_TYPE_EXTENTIONS_NULL_ERROR = "[error-plantuml-dependency-cli-021] : The java type extensions dependencies is null";
102 
103     /** The java type extensions too many elements error message. */
104     public static final String JAVA_TYPE_EXTENTIONS_TOO_MANY_ELEMENTS_ERROR = "[error-plantuml-dependency-cli-022] : The java type extensions dependencies has too many elements";
105 
106     /** The java type implementations dependencies null error message. */
107     public static final String JAVA_TYPE_IMPLEMENTATIONS_NULL_ERROR = "[error-plantuml-dependency-cli-023] : The java type implementations dependencies is null";
108 
109     /** The java type import dependencies null error message. */
110     public static final String JAVA_TYPE_IMPORTS_NULL_ERROR = "[error-plantuml-dependency-cli-024] : The java type import dependencies is null";
111 
112     /** The java type language keyword null error message. */
113     public static final String JAVA_TYPE_LANGUAGE_KEYWORD_NULL_ERROR = "[error-plantuml-dependency-cli-025] : The java type language keyword is null";
114 
115     /** The java type name null error message. */
116     public static final String JAVA_TYPE_NAME_NULL_ERROR = "[error-plantuml-dependency-cli-026] : The java type name is null";
117 
118     /** The java type package name null error message. */
119     public static final String JAVA_TYPE_PACKAGE_NAME_NULL_ERROR = "[error-plantuml-dependency-cli-027] : The java type package name is null";
120 
121     /** The not display type argument error message. */
122     public static final String NOT_DISPLAY_TYPE_ARGUMENT_ERROR = "[error-plantuml-dependency-cli-028] : Can't parse option argument \"{0}\", it isn't a valid display type argument";
123 
124     /** The plantUML dependency error message. */
125     public static final String PLANTUML_DEPENDENCY_ERROR = "[error-plantuml-dependency-cli-029] : An error has occured while running PlantUML Dependency, please check the log for more information";
126 
127     /** The programming language name null error message. */
128     public static final String PROGRAMMING_LANGUAGE_NAME_NULL_ERROR = "[error-plantuml-dependency-cli-030] : The programming language name is null";
129 
130     /** The programming language option null error message. */
131     public static final String PROGRAMMING_LANGUAGE_OPTION_NULL_ERROR = "[error-plantuml-dependency-cli-031] : The programming language option is null";
132 
133     /** The reading source file error message. */
134     public static final String READING_SOURCE_FILE_ERROR = "[error-plantuml-dependency-cli-032] : Severe parsing errors have occurred while reading the source file \"{0}\", the file will be ignored";
135 
136     /** The several display type arguments error message. */
137     public static final String SEVERAL_DISPLAY_TYPE_ARGUMENTS_ERROR = "[error-plantuml-dependency-cli-033] : The display type argument \"{0}\" is defined several times";
138 
139     /** The unknown programming language error message. */
140     public static final String UNKNOWN_JAVA_TYPE_ERROR = "[error-plantuml-dependency-cli-034] : The java type \"{0}\" is unknown";
141 
142     /** The unknown programming language error message. */
143     public static final String UNKNOWN_PROGRAMMING_LANGUAGE_ERROR = "[error-plantuml-dependency-cli-035] : The programming language \"{0}\" is unknown";
144 
145     /**
146      * Private constructor to prevent from instantiation.
147      *
148      * @since 1.0.0
149      */
150     private ErrorConstants() {
151         super();
152     }
153 }