01: /*
02: * The contents of this file are subject to the Mozilla Public License
03: * Version 1.1 (the "License"); you may not use this file except in
04: * compliance with the License. You may obtain a copy of the License at
05: * http://www.mozilla.org/MPL/
06: *
07: * Software distributed under the License is distributed on an "AS IS"
08: * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
09: * License for the specific language governing rights and limitations
10: * under the License.
11: *
12: * The Original Code is iSQL-Viewer, A Mutli-Platform Database Tool.
13: *
14: * The Initial Developer of the Original Code is iSQL-Viewer, A Mutli-Platform Database Tool.
15: * Portions created by Mark A. Kobold are Copyright (C) 2000-2007. All Rights Reserved.
16: *
17: * Contributor(s):
18: * Mark A. Kobold [mkobold <at> isqlviewer <dot> com].
19: *
20: * If you didn't download this code from the following link, you should check
21: * if you aren't using an obsolete version: http://www.isqlviewer.com
22: */
23: package org.isqlviewer;
24:
25: /**
26: * Thrown when a class field is attempted to be modified through a setter but cannot be mutated in the given context.
27: * <p>
28: * This exception helps define the situation where a member field is modifiable only once or when the requirements for
29: * other class members of an object are met. If a user attempts to modify the field when it is not modification is not
30: * allowed this exception can be thrown.
31: *
32: * @author Mark A. Kobold <mkobold at isqlviewer dot com>
33: * @version 1.0
34: */
35: public class FieldNotModifiableException extends RuntimeException {
36:
37: private static final long serialVersionUID = -7991215330717402660L;
38:
39: public FieldNotModifiableException() {
40:
41: }
42:
43: public FieldNotModifiableException(String message) {
44:
45: super (message);
46: }
47:
48: public FieldNotModifiableException(Throwable cause) {
49:
50: super (cause);
51: }
52:
53: public FieldNotModifiableException(String message, Throwable cause) {
54:
55: super(message, cause);
56: }
57: }
|