com.sun.identity.sm
Class SMSException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.sun.identity.sm.SMSException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InvalidAttributeNameException, SchemaException, ServiceAlreadyExistsException, ServiceNotFoundException

public class SMSException
extends java.lang.Exception

The exception class whose instance is thrown if there is any error during the operation of objects of the com.sun.identity.sms package. This class maps the exception that occured at a lower level to a high level error. Using the exception status code getExceptionCode() the errors are categorized as a ABORT, RETRY, CONFIG_PROBLEM or LDAP_OP_FAILED (typically a bug).

See Also:
Serialized Form

Field Summary
static int STATUS_ABORT
           
static int STATUS_CONFIG_PROBLEM
           
static int STATUS_INVALID_INPUT
           
static int STATUS_LDAP_OP_FAILED
           
static int STATUS_NO_PERMISSION
           
static int STATUS_NONE
           
static int STATUS_QUO_ANTE
           
static int STATUS_REPEATEDLY_FAILED
           
static int STATUS_RETRY
           
static int STATUS_SMS_OP_FAILED
           
static int STATUS_UNKNOWN_EXCEPTION
           
 
Constructor Summary
SMSException()
           
SMSException(int status)
           
SMSException(int status, java.lang.String exMessage)
           
SMSException(java.lang.String msg)
           
SMSException(java.lang.String message, java.lang.Throwable t)
           
SMSException(java.lang.Throwable t)
           
 
Method Summary
 int getExceptionCode()
           
 java.lang.String getMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STATUS_NONE

public static int STATUS_NONE

STATUS_RETRY

public static int STATUS_RETRY

STATUS_REPEATEDLY_FAILED

public static int STATUS_REPEATEDLY_FAILED

STATUS_ABORT

public static int STATUS_ABORT

STATUS_QUO_ANTE

public static int STATUS_QUO_ANTE

STATUS_LDAP_OP_FAILED

public static int STATUS_LDAP_OP_FAILED

STATUS_CONFIG_PROBLEM

public static int STATUS_CONFIG_PROBLEM

STATUS_UNKNOWN_EXCEPTION

public static int STATUS_UNKNOWN_EXCEPTION

STATUS_SMS_OP_FAILED

public static int STATUS_SMS_OP_FAILED

STATUS_INVALID_INPUT

public static int STATUS_INVALID_INPUT

STATUS_NO_PERMISSION

public static int STATUS_NO_PERMISSION
Constructor Detail

SMSException

public SMSException()

SMSException

public SMSException(int status)
Parameters:
status - The exception status code.

SMSException

public SMSException(int status,
                    java.lang.String exMessage)
Parameters:
status - The Exception status code.
msg - The message provided by the object which is throwing the exception

SMSException

public SMSException(java.lang.String msg)
Parameters:
msg - The message provided by the object which is throwing the exception

SMSException

public SMSException(java.lang.Throwable t)
Parameters:
t - The Throwable object provided by the object which is throwing the exception

SMSException

public SMSException(java.lang.String message,
                    java.lang.Throwable t)
Parameters:
t - The Throwable object provided by the object which is throwing the exception
Method Detail

getExceptionCode

public int getExceptionCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable