01 /* This file is part of the project "Hilbert II" - http://www.qedeq.org
02 *
03 * Copyright 2000-2013, 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.se.common;
17
18
19 /**
20 * Data validation error for a QEDEQ module. Occurs if a set or add method leads to wrong or
21 * inconsistent data.
22 *
23 * @author Michael Meyling
24 */
25 public class IllegalModuleDataException extends ModuleDataException {
26
27 /**
28 * Constructor.
29 *
30 * @param errorCode Error code of this message.
31 * @param message Error message.
32 * @param context Error location.
33 * @param referenceContext Reference location.
34 * @param cause Detailed exception information.
35 */
36 public IllegalModuleDataException(final int errorCode, final String message,
37 final ModuleContext context, final ModuleContext referenceContext,
38 final Exception cause) {
39 super(errorCode, message, context, referenceContext, cause);
40 }
41
42 /**
43 * Constructor.
44 *
45 * @param errorCode Error code of this message.
46 * @param message Error message.
47 * @param context Error location.
48 * @param cause Detailed exception information.
49 */
50 public IllegalModuleDataException(final int errorCode, final String message,
51 final ModuleContext context, final Exception cause) {
52 super(errorCode, message, context, cause);
53 }
54
55 /**
56 * Constructor.
57 *
58 * @param errorCode Error code of this message.
59 * @param message Error message.
60 * @param context Error location.
61 */
62 public IllegalModuleDataException(final int errorCode, final String message,
63 final ModuleContext context) {
64 super(errorCode, message, context);
65 }
66
67 /**
68 * Constructor.
69 *
70 * @param errorCode Error code of this message.
71 * @param message Error message.
72 * @param context Error location.
73 * @param referenceContext Reference location.
74 */
75 public IllegalModuleDataException(final int errorCode, final String message,
76 final ModuleContext context, final ModuleContext referenceContext) {
77 super(errorCode, message, context, referenceContext);
78 }
79
80
81
82 }
|