Package com.netscape.certsrv.acls
Class EACLsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.netscape.certsrv.base.EBaseException
-
- com.netscape.certsrv.acls.EACLsException
-
- All Implemented Interfaces:
java.io.Serializable
public class EACLsException extends EBaseException
A class represents an acls exception. Note that this is an Runtime exception so that methods used AccessManager do not have to explicity declare this exception. This allows AccessManager to be easily integrated into any existing code.- Version:
- $Revision$, $Date$
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.netscape.certsrv.base.EBaseException
mParams
-
-
Constructor Summary
Constructors Constructor Description EACLsException(java.lang.String msgFormat)
Constructs an acls exception.EACLsException(java.lang.String msgFormat, java.lang.Exception param)
Constructs a base exception.EACLsException(java.lang.String msgFormat, java.lang.Object[] params)
Constructs a base exception with a list of parameters that will be substituted into the message format.EACLsException(java.lang.String msgFormat, java.lang.String param)
Constructs a base exception with a parameter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
getBundleName()
Return the class name of the resource bundle.java.lang.Object[]
getParameters()
Returns a list of parameters.java.lang.String
toString()
String representation for the corresponding exception.java.lang.String
toString(java.util.Locale locale)
Returns string representation for the corresponding exception.
-
-
-
Constructor Detail
-
EACLsException
public EACLsException(java.lang.String msgFormat)
Constructs an acls exception.- Parameters:
msgFormat
- exception details
-
EACLsException
public EACLsException(java.lang.String msgFormat, java.lang.String param)
Constructs a base exception with a parameter. For example,new EACLsException("failed to load {0}", fileName);
- Parameters:
msgFormat
- exception details in message string formatparam
- message string parameter
-
EACLsException
public EACLsException(java.lang.String msgFormat, java.lang.Exception param)
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 EACLsException("Encountered System Error {0}", e); }
- Parameters:
msgFormat
- exception details in message string formatparam
- system exception
-
EACLsException
public EACLsException(java.lang.String msgFormat, java.lang.Object[] params)
Constructs a base exception with a list of parameters that will be substituted into the message format.- Parameters:
msgFormat
- exception details in message string formatparams
- list of message format parameters
-
-
Method Detail
-
getParameters
public java.lang.Object[] getParameters()
Returns a list of parameters.- Overrides:
getParameters
in classEBaseException
- Returns:
- list of message format parameters
-
toString
public java.lang.String toString()
String representation for the corresponding exception.- Overrides:
toString
in classEBaseException
- Returns:
- String representation for the corresponding exception.
-
toString
public java.lang.String toString(java.util.Locale locale)
Returns string representation for the corresponding exception.- Overrides:
toString
in classEBaseException
- Parameters:
locale
- client specified locale for string representation.- Returns:
- String representation for the corresponding exception.
-
getBundleName
protected java.lang.String getBundleName()
Return the class name of the resource bundle.- Overrides:
getBundleName
in classEBaseException
- Returns:
- class name of the resource bundle.
-
-