Package com.netscape.certsrv.logging
Class ELogException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.netscape.certsrv.base.EBaseException
com.netscape.certsrv.logging.ELogException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ELogNotFound
,ELogPluginNotFound
This class implements a Log exception. LogExceptions
should be caught by LogSubsystem managers.
- Version:
- $Revision$, $Date$
- See Also:
-
Field Summary
Fields inherited from class com.netscape.certsrv.base.EBaseException
mParams
-
Constructor Summary
ConstructorsConstructorDescriptionELogException
(String msgFormat) Constructs a log exception.ELogException
(String msgFormat, Exception param) Constructs a log exception.ELogException
(String msgFormat, Object[] params) Constructs a log exception with a list of parameters that will be substituted into the message format.ELogException
(String msgFormat, String param) Constructs a log 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
-
ELogException
Constructs a log exception.- Parameters:
msgFormat
- Exception details.
-
ELogException
Constructs a log exception with a parameter. For example,new ELogException("failed to load {0}", fileName);
- Parameters:
msgFormat
- Exception details in message string format.param
- Message string parameter.
-
ELogException
Constructs a log 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 ELogException("Encountered System Error {0}", e); }
- Parameters:
msgFormat
- Exception details in message string format.param
- System exception.
-
ELogException
Constructs a log 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 Details
-
getParameters
Returns a list of parameters.- Overrides:
getParameters
in classEBaseException
- Returns:
- list of message format parameters.
-
toString
Returns localized exception string. This method should only be called if a localized string is necessary.- Overrides:
toString
in classEBaseException
- Returns:
- Details message.
-
toString
Returns the string based on the given locale.- Overrides:
toString
in classEBaseException
- Parameters:
locale
- Locale.- Returns:
- Details message.
-
getBundleName
Retrieves resource bundle name. Subclasses should override this as necessary- Overrides:
getBundleName
in classEBaseException
- Returns:
- String containing name of resource bundle.
-