Class WSLoginFailedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.security.GeneralSecurityException
-
- javax.security.auth.login.LoginException
-
- com.ibm.websphere.security.auth.WSLoginFailedException
-
- All Implemented Interfaces:
- java.io.Serializable
public class WSLoginFailedException extends javax.security.auth.login.LoginException implements java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description WSLoginFailedException()
A default constructor.WSLoginFailedException(java.lang.String str)
A constructor that accepts an error message.WSLoginFailedException(java.lang.String str, java.lang.Throwable t)
A constructor accepts an error message and original exception.WSLoginFailedException(java.lang.Throwable t)
A constructor that accepts an error message.
-
Method Summary
Methods 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.void
printStackTrace(java.io.PrintStream s)
Deprecated.Formats and prints all the exceptions added to the ArrayList using the addException API. The output will be printed to the PrintStream passed in.
void
printStackTrace(java.io.PrintWriter s)
Deprecated.Formats and prints all the exceptions added to the ArrayList using the addException API. The output will be printed to the PrintWriter passed in.
-
-
-
Constructor Detail
-
WSLoginFailedException
public WSLoginFailedException()
A default constructor.
-
WSLoginFailedException
public WSLoginFailedException(java.lang.String str)
A constructor that accepts an error message. The error message can be retrieved using the getMessage() API.
- Parameters:
str
- An error message.
-
WSLoginFailedException
public WSLoginFailedException(java.lang.Throwable t)
A constructor that accepts an error message. The error message can be retrieved using the getMessage() API.
- Parameters:
str
- An error message.
-
WSLoginFailedException
public WSLoginFailedException(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.
- Parameters:
str
- An error message.t
- Any exception type that extends Throwable.
-
-
Method Detail
-
addException
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.
- Parameters:
t
- Any exception type that extends Throwable
-
getExceptions
public java.util.ArrayList getExceptions()
Returns an ArrayList of exceptions that have been added to this exception.
- Parameters:
t
- Any exception type that extends Throwable
-
getCause
public java.lang.Throwable getCause()
Returns the root cause exception.- Overrides:
getCause
in classjava.lang.Throwable
- Returns:
- The Throwable root cause exception.
-
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 classjava.lang.Throwable
-
printStackTrace
public void printStackTrace(java.io.PrintStream s)
Deprecated.Formats and prints all the exceptions added to the ArrayList using the addException API. The output will be printed to the PrintStream passed in.
- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
s
- A PrintStream which the exception output will be printed to.
-
printStackTrace
public void printStackTrace(java.io.PrintWriter s)
Deprecated.Formats and prints all the exceptions added to the ArrayList using the addException API. The output will be printed to the PrintWriter passed in.
- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
s
- A PrintWriter which the exception output will be printed to.
-
-