01: /* InvalidValueException.java
02:
03: {{IS_NOTE
04:
05: Purpose: Thrown by Validate to indicate an error
06: Description:
07: History:
08: 2001/4/19, Tom M. Yeh: Created.
09:
10: }}IS_NOTE
11:
12: Copyright (C) 2001 Potix Corporation. All Rights Reserved.
13:
14: {{IS_RIGHT
15: This program is distributed under GPL Version 2.0 in the hope that
16: it will be useful, but WITHOUT ANY WARRANTY.
17: }}IS_RIGHT
18: */
19: package org.zkoss.util;
20:
21: import org.zkoss.lang.Expectable;
22:
23: /**
24: * Denotes an invalid value is passed to a setter method.
25: *
26: * <p>Unlike {@link ModificationException}, this exception is
27: * {@link org.zkoss.lang.Expectable}, i.e., it is usually user's error,
28: * not program's bug.
29: *
30: * @author tomyeh
31: */
32: public class InvalidValueException extends ModificationException
33: implements Expectable {
34: public InvalidValueException(String msg, Throwable cause) {
35: super (msg, cause);
36: }
37:
38: public InvalidValueException(String s) {
39: super (s);
40: }
41:
42: public InvalidValueException(Throwable cause) {
43: super (cause);
44: }
45:
46: public InvalidValueException() {
47: }
48:
49: public InvalidValueException(int code, Object[] fmtArgs,
50: Throwable cause) {
51: super (code, fmtArgs, cause);
52: }
53:
54: public InvalidValueException(int code, Object fmtArg,
55: Throwable cause) {
56: super (code, fmtArg, cause);
57: }
58:
59: public InvalidValueException(int code, Object[] fmtArgs) {
60: super (code, fmtArgs);
61: }
62:
63: public InvalidValueException(int code, Object fmtArg) {
64: super (code, fmtArg);
65: }
66:
67: public InvalidValueException(int code, Throwable cause) {
68: super (code, cause);
69: }
70:
71: public InvalidValueException(int code) {
72: super(code);
73: }
74: }
|