< prev index next >

jaxws/src/java.xml.ws/share/classes/javax/xml/soap/SOAPException.java

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2004, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -81,10 +81,13 @@
     }
 
     /**
      * Constructs a {@code SOAPException} object initialized
      * with the given {@code Throwable} object.
+     *
+     * @param cause a {@code Throwable} object that is to
+     *        be embedded in this {@code SOAPException} object
      */
     public SOAPException(Throwable cause) {
         super(cause.toString());
         initCause(cause);
     }

@@ -101,10 +104,11 @@
      * @return the error or warning message for this
      *         {@code SOAPException} or, if it has none, the
      *         message of the embedded {@code Throwable} object,
      *         if there is one
      */
+    @Override
     public String getMessage() {
         String message = super.getMessage();
         if (message == null && cause != null) {
             return cause.getMessage();
         } else {

@@ -119,10 +123,11 @@
      *
      * @return the embedded {@code Throwable} object or {@code null}
      *         if there is none
      */
 
+    @Override
     public Throwable getCause() {
         return cause;
     }
 
     /**

@@ -149,10 +154,11 @@
      *         {@code Throwable} object.  (A {@code Throwable} object
      *         cannot be its own cause.)
      * @throws IllegalStateException if the cause for this {@code SOAPException} object
      *         has already been initialized
      */
+    @Override
     public synchronized Throwable initCause(Throwable cause) {
         if (this.cause != null) {
             throw new IllegalStateException("Can't override cause");
         }
         if (cause == this) {
< prev index next >