Class WSSecurityException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CertificateMapFailedException
,CertificateMapNotSupportedException
,CustomRegistryException
,EntryNotFoundException
,NotImplementedException
,PasswordCheckFailedException
- See Also:
-
Constructor Summary
ConstructorDescriptionA default constructor.A constructor that accepts an error message.WSSecurityException
(String str, Throwable t) A constructor accepts an error message and original exception.A constructor that accepts a Throwable. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add an exception that will be stored in an ArrayList.getCause()
Returns the root cause exception.Returns an ArrayList of exceptions that have been added to this exception.void
Formats and prints all the exceptions added to the ArrayList using the addException API.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
WSSecurityException
public WSSecurityException()A default constructor.
-
WSSecurityException
A constructor that accepts an error message. The error message can be retrieved using the getMessage() API.
- Parameters:
str
- An error message.
-
WSSecurityException
A constructor that accepts a Throwable. The Throwable can be retrieved using the getExceptions() or getCause() API.
- Parameters:
str
- An error message.
-
WSSecurityException
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.
- Parameters:
str
- An error message.t
- Any exception type that extends Throwable.
-
-
Method Details
-
addException
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.
- Parameters:
t
- Any exception type that extends Throwable
-
getCause
Returns the root cause exception. -
getExceptions
Returns an ArrayList of exceptions that have been added to this exception.
- Parameters:
t
- Any exception type that extends Throwable
-
printStackTrace
public void printStackTrace()Formats and prints all the exceptions added to the ArrayList using the addException API. The output will be printed to System error.
- Overrides:
printStackTrace
in classThrowable
-