org.apache.rahas
Class TrustException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.rahas.TrustException
All Implemented Interfaces:
Serializable

public class TrustException
extends Exception

See Also:
Serialized Form

Field Summary
static String AUTHENTICATION_BAD_ELEMENTS
           
static String BAD_REQUEST
           
static String EXPIRED_DATA
           
static String FAILED_AUTHENTICATION
           
static String INVALID_REQUEST
           
static String INVALID_SCOPE
           
static String INVALID_SECURITY_TOKEN
           
static String INVALID_TIME_RANGE
           
static String RENEW_NEEDED
           
static String REQUEST_FAILED
           
static String UNABLE_TO_RENEW
           
 
Constructor Summary
TrustException(String faultCode)
           
TrustException(String faultCode, Object[] args)
           
TrustException(String faultCode, Object[] args, Throwable e)
           
TrustException(String faultCode, Throwable e)
           
 
Method Summary
protected  String getFaultCode()
           
protected  String getFaultString()
           
protected static String getMessage(String faultCode, Object[] args)
          get the message from resource bundle.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_REQUEST

public static final String INVALID_REQUEST
See Also:
Constant Field Values

FAILED_AUTHENTICATION

public static final String FAILED_AUTHENTICATION
See Also:
Constant Field Values

REQUEST_FAILED

public static final String REQUEST_FAILED
See Also:
Constant Field Values

INVALID_SECURITY_TOKEN

public static final String INVALID_SECURITY_TOKEN
See Also:
Constant Field Values

AUTHENTICATION_BAD_ELEMENTS

public static final String AUTHENTICATION_BAD_ELEMENTS
See Also:
Constant Field Values

BAD_REQUEST

public static final String BAD_REQUEST
See Also:
Constant Field Values

EXPIRED_DATA

public static final String EXPIRED_DATA
See Also:
Constant Field Values

INVALID_TIME_RANGE

public static final String INVALID_TIME_RANGE
See Also:
Constant Field Values

INVALID_SCOPE

public static final String INVALID_SCOPE
See Also:
Constant Field Values

RENEW_NEEDED

public static final String RENEW_NEEDED
See Also:
Constant Field Values

UNABLE_TO_RENEW

public static final String UNABLE_TO_RENEW
See Also:
Constant Field Values
Constructor Detail

TrustException

public TrustException(String faultCode,
                      Object[] args)

TrustException

public TrustException(String faultCode)

TrustException

public TrustException(String faultCode,
                      Object[] args,
                      Throwable e)

TrustException

public TrustException(String faultCode,
                      Throwable e)
Method Detail

getMessage

protected static String getMessage(String faultCode,
                                   Object[] args)
get the message from resource bundle.

Returns:
the message translated from the property (message) file.

getFaultCode

protected String getFaultCode()
Returns:
Returns the faultCode.

getFaultString

protected String getFaultString()
Returns:
Returns the faultString.