com.ibm.websphere.security.auth

Class WSLoginFailedException

  1. java.lang.Object
  2. extended byjava.lang.Throwable
  3. extended byjava.lang.Exception
  4. extended byjava.security.GeneralSecurityException
  5. extended byjavax.security.auth.login.LoginException
  6. extended bycom.ibm.websphere.security.auth.WSLoginFailedException
All implemented interfaces:
java.io.Serializable

  1. public class WSLoginFailedException
  2. extends javax.security.auth.login.LoginException
  3. implements java.io.Serializable
See Also:
Serialized Form

Constructor Summary

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

Modifier and Type Method and Description
  1. void
addException(java.lang.Throwable t)
Add an exception that will be stored in an ArrayList.
  1. java.lang.Throwable
getCause()
Returns the root cause exception.
  1. java.util.ArrayList
getExceptions()
Returns an ArrayList of exceptions that have been added to this exception.
  1. void
printStackTrace()
Formats and prints all the exceptions added to the ArrayList using the addException API.
  1. 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.

  1. 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.

Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

WSLoginFailedException

  1. public WSLoginFailedException()

A default constructor.


WSLoginFailedException

  1. 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

  1. public WSLoginFailedException(java.lang.Throwable t)

A constructor that accepts an error message. The error message can be retrieved using the getMessage() API.


WSLoginFailedException

  1. public WSLoginFailedException(java.lang.String str,
  2. 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

  1. 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

  1. public java.util.ArrayList getExceptions( )

Returns an ArrayList of exceptions that have been added to this exception.


getCause

  1. public java.lang.Throwable getCause( )
Returns the root cause exception.
Overrides:
getCause in class java.lang.Throwable
Returns:
The Throwable root cause exception.

printStackTrace

  1. 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 class java.lang.Throwable

printStackTrace

  1. 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 class java.lang.Throwable
Parameters:
s - A PrintStream which the exception output will be printed to.

printStackTrace

  1. 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 class java.lang.Throwable
Parameters:
s - A PrintWriter which the exception output will be printed to.