01: /**
02: * $Id: ValidationException.java,v 1.1 2005/02/18 11:13:21 jj154728 Exp $
03: * Copyright 2004 Sun Microsystems, Inc. All
04: * rights reserved. Use of this product is subject
05: * to license terms. Federal Acquisitions:
06: * Commercial Software -- Government Users
07: * Subject to Standard License Terms and
08: * Conditions.
09: *
10: * Sun, Sun Microsystems, the Sun logo, and Sun ONE
11: * are trademarks or registered trademarks of Sun Microsystems,
12: * Inc. in the United States and other countries.
13: */package com.sun.portal.fabric.tasks;
14:
15: public class ValidationException extends Exception {
16: /**
17: * Constructs a new configuration exception with <code>null</code>
18: * as its detail message. The cause is not initialized, and may
19: * subsequently be initialized by a call to {@link #initCause}.
20: */
21: public ValidationException() {
22: super ();
23: }
24:
25: /**
26: * Constructs a new configuration exception with the specified
27: * detail message. The cause is not initialized, and may
28: * subsequently be initialized by a call to {@link #initCause}.
29: *
30: * @param message the detail message. The detail message is
31: * saved for later retrieval by the {@link
32: * #getMessage()} method.
33: */
34: public ValidationException(String message) {
35: super (message);
36: }
37:
38: /**
39: * Constructs a new configuration exception with the specified
40: * detail message and cause. <p>Note that the detail message
41: * associated with <code>cause</code> is <i>not</i> automatically
42: * incorporated in this exception's detail message.
43: *
44: * @param message the detail message (which is saved for later
45: * retrieval by the {@link #getMessage()} method).
46: * @param cause the cause (which is saved for later retrieval by
47: * the {@link #getCause()} method). (A
48: * <tt>null</tt> value is permitted, and indicates
49: * that the cause is nonexistent or unknown.)
50: */
51: public ValidationException(String message, Throwable cause) {
52: super (message, cause);
53: }
54:
55: /**
56: * Constructs a new configuration exception with the specified
57: * cause and a detail message of <tt>((cause == null) ? null :
58: * cause.toString())</tt> (which typically contains the class and
59: * detail message of <tt>cause</tt>).
60: *
61: * @param cause the cause (which is saved for later retrieval by
62: * the {@link #getCause()} method). (A
63: * <tt>null</tt> value is permitted, and indicates
64: * that the cause is nonexistent or unknown.)
65: */
66: public ValidationException(Throwable cause) {
67: super(cause);
68: }
69: }
|