01 /* This file is part of the project "Hilbert II" - http://www.qedeq.org
02 *
03 * Copyright 2000-2011, Michael Meyling <mime@qedeq.org>.
04 *
05 * "Hilbert II" is free software; you can redistribute
06 * it and/or modify it under the terms of the GNU General Public
07 * License as published by the Free Software Foundation; either
08 * version 2 of the License, or (at your option) any later version.
09 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 */
15
16 package org.qedeq.kernel.bo.service;
17
18 import org.qedeq.kernel.se.common.ErrorCodes;
19
20 /**
21 * Error codes and messages for service package.
22 *
23 * @author Michael Meyling
24 */
25 public interface ServiceErrors extends ErrorCodes {
26
27 /** Error code. */
28 public static final int IO_ERROR_CODE = 9090;
29
30 /** Error message. */
31 public static final String IO_ERROR_TEXT
32 = "Reading or writing failed.";
33
34
35 /** Error code. */
36 public static final int RUNTIME_ERROR_CODE = 90100;
37
38 /** Error message. */
39 public static final String RUNTIME_ERROR_TEXT
40 = "Programming error occured.";
41
42
43 /** Error code. */
44 public static final int LOADING_FROM_FILE_BUFFER_FAILED_CODE = 90700;
45
46 /** Error message. */
47 public static final String LOADING_FROM_FILE_BUFFER_FAILED_TEXT
48 = "Loading module from file buffer failed.";
49
50
51 /** Error code. */
52 public static final int LOADING_FROM_LOCAL_FILE_FAILED_CODE = 90710;
53
54 /** Error message. */
55 public static final String LOADING_FROM_LOCAL_FILE_FAILED_TEXT
56 = "Loading module from local file failed.";
57
58
59 /** Error code. */
60 public static final int LOADING_FROM_WEB_FAILED_CODE = 90720;
61
62 /** Error message. */
63 public static final String LOADING_FROM_WEB_FAILED_TEXT
64 = "Loading module from web failed.";
65
66
67 /** Error code. */
68 public static final int RECURSIVE_IMPORT_OF_MODULES_IS_FORBIDDEN_CODE = 90722;
69
70 /** Error message. */
71 public static final String RECURSIVE_IMPORT_OF_MODULES_IS_FORBIDDEN_TEXT
72 = "Recursive import of modules is forbidden, label: ";
73
74
75 /** Error code. */
76 public static final int IMPORT_OF_MODULE_FAILED_CODE = 90723;
77
78 /** Error message. */
79 public static final String IMPORT_OF_MODULE_FAILED_TEXT
80 = "Import of module failed, label: ";
81
82
83 }
|