Class AccessException

java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.security.am.asdk.AccessException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
OperationNotPermittedException

public class AccessException extends Exception

An AccessException is thrown by the OAM Access SDK API whenever unexpected, unrecoverable errors occur between the Access SDK and the OAM Server.

See Also:
  • Constructor Details

    • AccessException

      public AccessException()
      Constructs an AccessException object with default error message
    • AccessException

      public AccessException<wbr>(Exception ex)
      Constructs an AccessException with the specified exception object
      Parameters:
      ex - Exception object containing error message
    • AccessException

      public AccessException<wbr>(String messageId)
      Constructs an AccessException with the specified message
      Parameters:
      messageId - Message id
    • AccessException

      public AccessException<wbr>(Throwable cause)
      Constructors an AccessException based on cause.
      Parameters:
      cause - Cause of this exception.
    • AccessException

      public AccessException<wbr>(String messageId, Throwable exception)
      Constructs an AccessException with the specified message and throwable cause
      Parameters:
      messageId - message id
      exception - throwable cause
    • AccessException

      public AccessException<wbr>(Throwable cause, String messageId, Object... parameters)
      Constructor based on message, cause and parameters.
      Parameters:
      cause - cause of exception
      messageId - message Id
      parameters - parameters of the message
    • AccessException

      public AccessException<wbr>(String messageId, Object... parameters)
      Constructor based on message and parameters.
      Parameters:
      messageId - Message Id
      parameters - parameters of the message
  • Method Details

    • getMessageID

      public String getMessageID()
      Returns message id if it was passed on creation.
      Returns:
      message id.
    • getParams

      public Object[] getParams()
      Returns the parameters of the exception message.
      Returns:
      parameters of the exception message.
    • toString

      public String toString()
      In addition, the message id is included as a separate field from the message itself if those are distinct.
      Overrides:
      toString in class Throwable