com.sun.identity.saml2.common
Class SAML2Exception

java.lang.Object
  extended byL10NMessageImpl
      extended bycom.sun.identity.saml2.common.SAML2Exception

public class SAML2Exception
extends L10NMessageImpl

This class is an extension point for all SAML related exceptions. This class also handles message localization in SAML exceptions.

See Also:
Serialized Form

Constructor Summary
SAML2Exception(java.lang.String message)
          Constructs a new SAML2Exception with the given message.
SAML2Exception(java.lang.String rbName, java.lang.String errorCode, java.lang.Object[] args)
          Constructs a new SAML2Exception without a nested Throwable.
SAML2Exception(java.lang.Throwable t)
          Constructs an SAML2Exception with given Throwable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SAML2Exception

public SAML2Exception(java.lang.String rbName,
                      java.lang.String errorCode,
                      java.lang.Object[] args)
Constructs a new SAML2Exception without a nested Throwable.

Parameters:
rbName - Resource Bundle Name to be used for getting localized error message.
errorCode - Key to resource bundle. You can use
 ResourceBundle rb = ResourceBunde.getBundle (rbName,locale);
 String localizedStr = rb.getString(errorCode);
 
args - arguments to message. If it is not present pass them as null

SAML2Exception

public SAML2Exception(java.lang.String message)
Constructs a new SAML2Exception with the given message.

Parameters:
message - message for this exception. This message can be later retrieved by getMessage() method.

SAML2Exception

public SAML2Exception(java.lang.Throwable t)
Constructs an SAML2Exception with given Throwable.

Parameters:
t - Exception nested in the new exception.


Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.