1 /* 2 ErrorConstants.java 3 Creation date : 13/05/2007 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.common.constants.log; 26 27 /** 28 * The class which defines all error messages constants which are only 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 close file error message. */ 38 public static final String CLOSE_FILE_ERROR = "[error-plantuml-dependency-common-000] : An error has occurred while closing file ({0})"; 39 40 /** The close stream error message. */ 41 public static final String CLOSE_STREAM_ERROR = "[error-plantuml-dependency-common-001] : An error has occurred while closing a stream"; 42 43 /** The immutable date error message. */ 44 public static final String IMMUTABLE_DATE_ERROR = "[error-plantuml-dependency-common-002] : The date instance {0} is immutable, can't update it"; 45 46 /** The malformed error message. */ 47 public static final String MALFORMED_URL_ERROR = "[error-plantuml-dependency-common-003] : The URL {0} is malformed, can't parse it as a valid URL"; 48 49 /** The missing logging file error message. */ 50 public static final String MISSING_LOGGING_FILE_ERROR = "[error-plantuml-dependency-common-004] : The logging file \"{0}\" can't be found"; 51 52 /** The read file error message. */ 53 public static final String READ_FILE_ERROR = "[error-plantuml-dependency-common-005] : An error has occurred while reading file ({0})"; 54 55 /** The unexpected exception error message. */ 56 public static final String UNEXPECTED_ERROR = "[error-plantuml-dependency-common-006] : A severe and unexpected error has occurred"; 57 58 /** The write file error message. */ 59 public static final String WRITE_FILE_ERROR = "[error-plantuml-dependency-common-007] : An error has occurred while writing file ({0})"; 60 61 /** 62 * Private constructor to prevent from instantiation. 63 * 64 * @since 1.3.0 65 */ 66 private ErrorConstants() { 67 super(); 68 } 69 }