com.sun.identity.liberty.ws.authnsvc
Class AuthnSvcException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.identity.shared.locale.L10NMessageImpl
              extended by com.sun.identity.liberty.ws.authnsvc.AuthnSvcException

public class AuthnSvcException
extends com.sun.identity.shared.locale.L10NMessageImpl

This class is an extension point for all Authentication Service related exceptions.

See Also:
Serialized Form

Constructor Summary
AuthnSvcException(String s)
          Create an AuthnSvcException with a message.
AuthnSvcException(String rbName, String errorCode, Object[] args)
          Constructs a new AuthnSvcException without a nested Throwable.
AuthnSvcException(Throwable t)
          Constructs with Throwable object.
 

Constructor Detail

AuthnSvcException

public AuthnSvcException(String s)
Create an AuthnSvcException with a message.

Parameters:
s - exception message.

AuthnSvcException

public AuthnSvcException(Throwable t)
Constructs with Throwable object.

Parameters:
t - Throwable object

AuthnSvcException

public AuthnSvcException(String rbName,
                         String errorCode,
                         Object[] args)
Constructs a new AuthnSvcException 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