com.netscape.certsrv.policy
Class EPolicyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.netscape.certsrv.base.EBaseException
              extended by com.netscape.certsrv.policy.EPolicyException
All Implemented Interfaces:
java.io.Serializable

Deprecated.

public class EPolicyException
extends EBaseException

This class represents Exceptions used by the policy package. The policies themselves do not raise exceptions but use them to format error messages. Adapted from EBasException

 NOTE:  The Policy Framework has been replaced by the Profile Framework.
 

Version:
$Revision: 1226 $, $Date: 2010-08-19 14:16:41 -0700 (Thu, 19 Aug 2010) $
See Also:
MessageFormat, Serialized Form

Field Summary
 
Fields inherited from class com.netscape.certsrv.base.EBaseException
mParams
 
Constructor Summary
EPolicyException(java.lang.String msgFormat)
          Deprecated. Constructs a base exception.
EPolicyException(java.lang.String msgFormat, java.lang.Exception param)
          Deprecated. Constructs a base exception.
EPolicyException(java.lang.String msgFormat, java.lang.Object[] params)
          Deprecated. Constructs a base exception with a list of parameters that will be substituted into the message format.
EPolicyException(java.lang.String msgFormat, java.lang.String param)
          Deprecated. Constructs a base exception with a parameter.
EPolicyException(java.lang.String msgFormat, java.lang.String param1, java.lang.String param2)
          Deprecated. Constructs a base exception with two String parameters.
 
Method Summary
protected  java.lang.String getBundleName()
          Deprecated. Returns the given resource bundle name.
 java.lang.Object[] getParameters()
          Deprecated. Returns a list of parameters.
 java.lang.String toString()
          Deprecated. Returns localized exception string.
 java.lang.String toString(java.util.Locale locale)
          Deprecated. Returns the string based on the given locale.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EPolicyException

public EPolicyException(java.lang.String msgFormat)
Deprecated. 
Constructs a base exception.

Parameters:
msgFormat - exception details

EPolicyException

public EPolicyException(java.lang.String msgFormat,
                        java.lang.String param)
Deprecated. 
Constructs a base exception with a parameter. For example,
                new EPolicyException("failed to load {0}", fileName);
 

Parameters:
msgFormat - exception details in message string format
param - message string parameter

EPolicyException

public EPolicyException(java.lang.String msgFormat,
                        java.lang.String param1,
                        java.lang.String param2)
Deprecated. 
Constructs a base exception with two String parameters. For example,

Parameters:
msgFormat - exception details in message string format
param1 - message string parameter
param2 - message string parameter

EPolicyException

public EPolicyException(java.lang.String msgFormat,
                        java.lang.Exception param)
Deprecated. 
Constructs a base exception. It can be used to carry a system exception that may contain information about the context. For example,
                try {
                ...
                } catch (IOExeption e) {
                        throw new EPolicyException("Encountered System Error {0}", e);
      }
 

Parameters:
msgFormat - exception details in message string format
param - system exception

EPolicyException

public EPolicyException(java.lang.String msgFormat,
                        java.lang.Object[] params)
Deprecated. 
Constructs a base exception with a list of parameters that will be substituted into the message format.

Parameters:
msgFormat - exception details in message string format
params - list of message format parameters
Method Detail

getParameters

public java.lang.Object[] getParameters()
Deprecated. 
Returns a list of parameters.

Overrides:
getParameters in class EBaseException
Returns:
list of message format parameters

toString

public java.lang.String toString()
Deprecated. 
Returns localized exception string. This method should only be called if a localized string is necessary.

Overrides:
toString in class EBaseException
Returns:
details message

toString

public java.lang.String toString(java.util.Locale locale)
Deprecated. 
Returns the string based on the given locale.

Overrides:
toString in class EBaseException
Parameters:
locale - locale
Returns:
details message

getBundleName

protected java.lang.String getBundleName()
Deprecated. 
Description copied from class: EBaseException
Returns the given resource bundle name.

Overrides:
getBundleName in class EBaseException
Returns:
the name of the resource bundle for this class.