com.sun.identity.plugin.datastore
Class DataStoreProviderException

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.plugin.datastore.DataStoreProviderException

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

This class is to handle DataStoreProvider related exceptions.

See Also:
Serialized Form

Constructor Summary
DataStoreProviderException(Exception ex)
          Constructs a DataStoreProviderException with an exception.
DataStoreProviderException(String message)
          Constructs a DataStoreProviderException with a detailed message.
DataStoreProviderException(String rbName, String errorCode, Object[] args)
          Constructs a new DataStoreProviderException without a nested Throwable.
DataStoreProviderException(Throwable rootCause)
          Constructs a DataStoreProviderException with an embedded exception.
 

Constructor Detail

DataStoreProviderException

public DataStoreProviderException(String message)
Constructs a DataStoreProviderException with a detailed message.

Parameters:
message - Detailed message for this exception.

DataStoreProviderException

public DataStoreProviderException(Throwable rootCause)
Constructs a DataStoreProviderException with an embedded exception.

Parameters:
rootCause - An embedded exception

DataStoreProviderException

public DataStoreProviderException(Exception ex)
Constructs a DataStoreProviderException with an exception.

Parameters:
ex - an exception

DataStoreProviderException

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