KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > xml > ws > WebServiceException


1 /*
2  * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
3  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
4  */

5
6 package javax.xml.ws;
7
8 /** The <code>WebServiceException</code> class is the base
9  * 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 JavaDoc {
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 JavaDoc 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 JavaDoc message, Throwable JavaDoc 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 JavaDoc cause) {
56     super(cause);
57   }
58
59 }
60
Popular Tags