01: /*
02: * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
03: * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
04: */
05:
06: package javax.xml.ws;
07:
08: /** The <code>WebServiceException</code> class is the base
09: * exception class for all JAX-WS API runtime exceptions.
10: *
11: * @since JAX-WS 2.0
12: **/
13:
14: public class WebServiceException extends java.lang.RuntimeException {
15:
16: /** Constructs a new exception with <code>null</code> as its
17: * detail message. The cause is not initialized.
18: **/
19: public WebServiceException() {
20: super ();
21: }
22:
23: /** Constructs a new exception with the specified detail
24: * message. The cause is not initialized.
25: * @param message The detail message which is later
26: * retrieved using the getMessage method
27: **/
28: public WebServiceException(String message) {
29: super (message);
30: }
31:
32: /** Constructs a new exception with the specified detail
33: * message and cause.
34: *
35: * @param message The detail message which is later retrieved
36: * using the getMessage method
37: * @param cause The cause which is saved for the later
38: * retrieval throw by the getCause method
39: **/
40: public WebServiceException(String message, Throwable cause) {
41: super (message, cause);
42: }
43:
44: /** Constructs a new WebServiceException with the specified cause
45: * and a detail message of <tt>(cause==null ? null :
46: * cause.toString())</tt> (which typically contains the
47: * class and detail message of <tt>cause</tt>).
48: *
49: * @param cause The cause which is saved for the later
50: * retrieval throw by the getCause method.
51: * (A <tt>null</tt> value is permitted, and
52: * indicates that the cause is nonexistent or
53: * unknown.)
54: **/
55: public WebServiceException(Throwable cause) {
56: super(cause);
57: }
58:
59: }
|