Package com.netscape.certsrv.base
Class EBaseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.netscape.certsrv.base.EBaseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestDataException
,EACLsException
,EAuthException
,EAuthzException
,ECAException
,ECMSGWException
,EDBException
,EExtensionsException
,EJobsException
,EKRAException
,ELdapException
,EListenersException
,ELogException
,ENotificationException
,EPasswordCheckException
,EPolicyException
,EProfileException
,EPropertyException
,EPropertyNotDefined
,EPropertyNotFound
,ERegistryException
,ESelfTestException
,EUsrGrpException
,PolicyMessage
,TPSException
An exception with localizable error messages. It is the
base class for all exceptions in certificate server.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEBaseException
(Exception cause) Constructs an instance of this exception given the cause exception.EBaseException
(String msgFormat) Constructs an instance of this exception with the given resource key.EBaseException
(String msgFormat, Object[] params) Constructs an instance of this exception given the resource key and an array of parameters.EBaseException
(String msgFormat, Object[] params, Exception cause) Constructs an instance of this exception given the resource key, an array of parameters, and the cause exception.EBaseException
(String msgFormat, Throwable cause) Constructs an instance of this exception given the resource key and the cause exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
mParams
Parameters to the exception error message.
-
-
Constructor Details
-
EBaseException
Constructs an instance of this exception with the given resource key. If resource key is not found in the resource bundle, the resource key specified is used as the error message.new EBaseException(BaseResources.PERMISSION_DENIED); new EBaseException("An plain error message");
- Parameters:
msgFormat
- The error message resource key.
-
EBaseException
Constructs an instance of this exception given the resource key and the cause exception.try { ... } catch (IOExeption e) { throw new EBaseException(BaseResources.INTERNAL_ERROR_1, e); }
- Parameters:
msgFormat
- The resource keycause
- The cause exception
-
EBaseException
-
EBaseException
-
EBaseException
Constructs an instance of this exception given the cause exception.try { ... } catch (IOExeption e) { throw new EBaseException(e); }
- Parameters:
cause
- The cause exception
-
-
Method Details
-
getParameters
-
toString
-
toString
-
getBundleName
Returns the given resource bundle name.- Returns:
- the name of the resource bundle for this class.
-