public class WSSecurityException
extends java.security.GeneralSecurityException
implements java.io.Serializable
Constructor and Description |
---|
WSSecurityException()
A default constructor.
|
WSSecurityException(java.lang.String str)
A constructor that accepts an error message.
|
WSSecurityException(java.lang.String str,
java.lang.Throwable t)
A constructor accepts an error message and original exception.
|
WSSecurityException(java.lang.Throwable t)
A constructor that accepts a Throwable.
|
Modifier and Type | Method and Description |
---|---|
void |
addException(java.lang.Throwable t)
Add an exception that will be stored in an ArrayList.
|
java.lang.Throwable |
getCause()
Returns the root cause exception.
|
java.util.ArrayList |
getExceptions()
Returns an ArrayList of exceptions that have been added to this exception.
|
void |
printStackTrace()
Formats and prints all the exceptions added to the ArrayList using the addException API.
|
public WSSecurityException()
A default constructor.
public WSSecurityException(java.lang.String str)
A constructor that accepts an error message. The error message can be retrieved using the getMessage() API.
str
- An error message.public WSSecurityException(java.lang.Throwable t)
A constructor that accepts a Throwable. The Throwable can be retrieved using the getExceptions() or getCause() API.
str
- An error message.public WSSecurityException(java.lang.String str, java.lang.Throwable t)
A constructor accepts an error message and original exception. The exception will be added to an ArrayList and other exceptions may be added along the way. The error message can be retrieved using the getMessage() API.
str
- An error message.t
- Any exception type that extends Throwable.public void addException(java.lang.Throwable t)
Add an exception that will be stored in an ArrayList. The method getExceptions can return all the exceptions added via addException. You may also add an exception via the constructor. Use of this API allows exceptions to be propogated back to the originating caller.
t
- Any exception type that extends Throwablepublic java.lang.Throwable getCause()
getCause
in class java.lang.Throwable
public java.util.ArrayList getExceptions()
Returns an ArrayList of exceptions that have been added to this exception.
t
- Any exception type that extends Throwablepublic void printStackTrace()
Formats and prints all the exceptions added to the ArrayList using the addException API. The output will be printed to System error.
printStackTrace
in class java.lang.Throwable