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:
Serializable
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:
-
Field Summary
Fields inherited from class com.netscape.certsrv.base.EBaseException
mParams
-
Constructor Summary
ConstructorsConstructorDescriptionEACLsException
(String msgFormat) Constructs an acls exception.EACLsException
(String msgFormat, Exception param) Constructs a base exception.EACLsException
(String msgFormat, Object[] params) Constructs a base exception with a list of parameters that will be substituted into the message format.EACLsException
(String msgFormat, String param) Constructs a base exception with a parameter. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
EACLsException
Constructs an acls exception.- Parameters:
msgFormat
- exception details
-
EACLsException
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
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
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 Details
-
getParameters
Returns a list of parameters.- Overrides:
getParameters
in classEBaseException
- Returns:
- list of message format parameters
-
toString
String representation for the corresponding exception.- Overrides:
toString
in classEBaseException
- Returns:
- String representation for the corresponding exception.
-
toString
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
Return the class name of the resource bundle.- Overrides:
getBundleName
in classEBaseException
- Returns:
- class name of the resource bundle.
-