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.commoncli.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.3.0
33   * @version 1.3.0
34   */
35  public final class ErrorConstants {
36  
37      /** The argument not found but mandatory error message. */
38      public static final String ARGUMENT_NOT_FOUND_BUT_MANDATORY_ERROR = "[error-plantuml-dependency-commoncli-000] : Argument of the option \"{0}\" not found but mandatory";
39  
40      /** The command line arguments null error message. */
41      public static final String COMMAND_LINE_ARGUMENTS_NULL_ERROR = "[error-plantuml-dependency-commoncli-001] : The command line arguments are null";
42  
43      /** The command line null error message. */
44      public static final String COMMAND_LINE_NULL_ERROR = "[error-plantuml-dependency-commoncli-002] : The command line is null";
45  
46      /** The compilation time null error message. */
47      public static final String COMPILATION_TIME_NULL_ERROR = "[error-plantuml-dependency-commoncli-003] : The program compilation time is null";
48  
49      /** The duplicate options error message. */
50      public static final String DATE_FORMAT_ERROR = "[error-plantuml-dependency-commoncli-004] : The date format pattern \"{0}\" is invalid";
51  
52      /** The duplicate options error message. */
53      public static final String DUPLICATE_OPTION_ERROR = "[error-plantuml-dependency-commoncli-005] : The following option has been found several times in the command line : \"{0}\"";
54  
55      /** The duplicate option name error message. */
56      public static final String DUPLICATE_OPTION_NAME_ERROR = "[error-plantuml-dependency-commoncli-006] : Duplicate option name \"{0}\" have been found";
57  
58      /** The duplicate option priority error message. */
59      public static final String DUPLICATE_OPTION_PRIORITY_ERROR = "[error-plantuml-dependency-commoncli-007] : Duplicate option priority \"{0}\" have been found";
60  
61      /** The empty argument error message. */
62      public static final String EMPTY_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-008] : \"{0}\" argument is empty";
63  
64      /** The empty argument error message. */
65      public static final String EMPTY_OPTION_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-009] : Can't parse option argument, it is empty";
66  
67      /** The existing file argument error message. */
68      public static final String EXISTING_FILE_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-010] : Can't parse option argument \"{0}\", it must be a non existing file and mustn't be a directory";
69  
70      /** The full usage description null error message. */
71      public static final String FULL_USAGE_DESCRIPTION_NULL_ERROR = "[error-plantuml-dependency-commoncli-011] : The full usage description is null";
72  
73      /** The full usage examples null error message. */
74      public static final String FULL_USAGE_EXAMPLES_NULL_ERROR = "[error-plantuml-dependency-commoncli-012] : The full usage examples is null";
75  
76      /** The integer out of range error message. */
77      public static final String INTEGER_OUT_OF_RANGE_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-013] : Can't parse option argument \"{0}\", it must be an integer between \"{1}\" and \"{2}\"";
78  
79      /** The java program null error message. */
80      public static final String JAVA_PROGRAM_NULL_ERROR = "[error-plantuml-dependency-commoncli-014] : The java program is null";
81  
82      /** The known bug or limitation null or empty error message. */
83      public static final String KNOWN_BUG_OR_LIMITATION_NULL_ERROR = "[error-plantuml-dependency-commoncli-015] : The known bug or limitation is null or empty";
84  
85      /** The mandatory option error message. */
86      public static final String MANDATORY_OPTION_ERROR = "[error-plantuml-dependency-commoncli-016] : The option \"{0}\" is missing, it is mandatory to specify it";
87  
88      /** The mandatory options null error message. */
89      public static final String MANDATORY_OPTIONS_NULL_ERROR = "[error-plantuml-dependency-commoncli-017] : The mandatory options are null";
90  
91      /** The missing property error message. */
92      public static final String MISSING_PROPERTY_ERROR = "[error-plantuml-dependency-commoncli-018] : The property \"{0}\" is missing in the property file";
93  
94      /** The missing property file error message. */
95      public static final String MISSING_PROPERTY_FILE_ERROR = "[error-plantuml-dependency-commoncli-019] : The property file \"{0}\" can't be found";
96  
97      /** The no option executions error message. */
98      public static final String NO_OPTION_EXECUTIONS_ERROR = "[error-plantuml-dependency-commoncli-020] : No option executions have been found, nothing to execute, nothing to do";
99  
100     /** The not existing file argument error message. */
101     public static final String NON_DIRECTORY_FILE_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-021] : Can't parse option argument \"{0}\", it mustn't be a directory";
102 
103     /** The non existing file argument error message. */
104     public static final String NON_EXISTING_FILE_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-022] : Can't parse option argument \"{0}\", it must be an existing file";
105 
106     /** The not boolean argument error message. */
107     public static final String NOT_BOOLEAN_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-023] : Can't parse option argument \"{0}\", it isn't a boolean";
108 
109     /** The not existing directory argument error message. */
110     public static final String NOT_EXISTING_DIRECTORY_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-024] : Can't parse option argument \"{0}\", it isn't an existing directory";
111 
112     /** The not integer argument error message. */
113     public static final String NOT_INTEGER_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-025] : Can't parse option argument \"{0}\", it must be an integer";
114 
115     /** The not level argument error message. */
116     public static final String NOT_LEVEL_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-026] : Can't parse option argument \"{0}\", it must be a valid verbose level";
117 
118     /** The not level argument error message. */
119     public static final String NOT_LOG_LEVEL_ARGUMENT_ERROR = "[error-plantuml-dependency-commoncli-027] : Can't parse option argument \"{0}\", it must be a valid log level";
120 
121     /** The not positive version number error message. */
122     public static final String NOT_POSITIVE_VERSION_NUMBER_ERROR = "[error-plantuml-dependency-commoncli-028] : The program version number \"{0}\" must be positive";
123 
124     /** The option argument null error message. */
125     public static final String OPTION_ARGUMENT_NULL_ERROR = "[error-plantuml-dependency-commoncli-029] : The option argument is null";
126 
127     /** The option argument separator null error message. */
128     public static final String OPTION_ARGUMENT_SEPARATOR_NULL_ERROR = "[error-plantuml-dependency-commoncli-030] : The option argument separator is null";
129 
130     /** The option executions null error message. */
131     public static final String OPTION_EXECUTIONS_NULL_ERROR = "[error-plantuml-dependency-commoncli-031] : The option executions are null";
132 
133     /** The option name null error message. */
134     public static final String OPTION_NAME_NULL_ERROR = "[error-plantuml-dependency-commoncli-032] : The option name is null";
135 
136     /** The option null error message. */
137     public static final String OPTION_NULL_ERROR = "[error-plantuml-dependency-commoncli-033] : The option is null";
138 
139     /** The option secondary names null error message. */
140     public static final String OPTION_SECONDARY_NAMES_NULL_ERROR = "[error-plantuml-dependency-commoncli-034] : The option secondary names are null";
141 
142     /** The option status null error message. */
143     public static final String OPTION_STATUS_NULL_ERROR = "[error-plantuml-dependency-commoncli-35] : The option status are null";
144 
145     /** The option status set null error message. */
146     public static final String OPTION_STATUS_SET_NULL_ERROR = "[error-plantuml-dependency-commoncli-036] : The option status set is null";
147 
148     /** The optional options null error message. */
149     public static final String OPTIONAL_OPTION_NULL_ERROR = "[error-plantuml-dependency-commoncli-037] : The optional options are null";
150 
151     /** The options null error message. */
152     public static final String OPTIONS_NULL_ERROR = "[error-plantuml-dependency-commoncli-038] : The options are null";
153 
154     /** The program authors null error message. */
155     public static final String PROGRAM_AUTHORS_NULL_ERROR = "[error-plantuml-dependency-commoncli-039] : The program authors are null";
156 
157     /** The program jar name null error message. */
158     public static final String PROGRAM_JAR_NAME_NULL_ERROR = "[error-plantuml-dependency-commoncli-040] : The program jar name is null";
159 
160     /** The program licenses null error message. */
161     public static final String PROGRAM_LICENSES_NULL_ERROR = "[error-plantuml-dependency-commoncli-041] : The program licenses are null";
162 
163     /** The program name null error message. */
164     public static final String PROGRAM_NAME_NULL_ERROR = "[error-plantuml-dependency-commoncli-042] : The program name is null";
165 
166     /** The program title description null error message. */
167     public static final String PROGRAM_TITLE_DESCRIPTION_NULL_ERROR = "[error-plantuml-dependency-commoncli-043] : The program title description is null";
168 
169     /** The program URL null error message. */
170     public static final String PROGRAM_URL_NULL_ERROR = "[error-plantuml-dependency-commoncli-044] : The program URL is null";
171 
172     /** The program version null error message. */
173     public static final String PROGRAM_VERSION_NULL_ERROR = "[error-plantuml-dependency-commoncli-045] : The program version is null";
174 
175     /** The program version parsing error message. */
176     public static final String PROGRAM_VERSION_PARSING_ERROR = "[error-plantuml-dependency-commoncli-046] : The program version can't be parsed (\"{0}\")";
177 
178     /** The program version parsing error message. */
179     public static final String PROGRAM_VERSION_PARSING2_ERROR = "[error-plantuml-dependency-commoncli-047] : The program version can't be parsed (too many numbers in the string)";
180 
181     /** The verbose option null error message. */
182     public static final String VERBOSE_OPTION_NULL_ERROR = "[error-plantuml-dependency-commoncli-048] : The verbose option is null";
183 
184     /**
185      * Private constructor to prevent from instantiation.
186      *
187      * @since 1.3.0
188      */
189     private ErrorConstants() {
190         super();
191     }
192 }