com.sun.identity.plugin.log
Class LogException

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.log.LogException

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

This class is to handle Log related exceptions.

See Also:
Serialized Form

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

Constructor Detail

LogException

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

Parameters:
message - detailed message for this exception.

LogException

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

Parameters:
rootCause - An embedded exception

LogException

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

Parameters:
ex - an exception

LogException

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