|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.netscape.certsrv.base.EBaseException
com.netscape.certsrv.logging.ELogException
public class ELogException
This class implements a Log exception. LogExceptions should be caught by LogSubsystem managers.
MessageFormat
,
Serialized FormField Summary |
---|
Fields inherited from class com.netscape.certsrv.base.EBaseException |
---|
mParams |
Constructor Summary | |
---|---|
ELogException(java.lang.String msgFormat)
Constructs a log exception. |
|
ELogException(java.lang.String msgFormat,
java.lang.Exception param)
Constructs a log exception. |
|
ELogException(java.lang.String msgFormat,
java.lang.Object[] params)
Constructs a log exception with a list of parameters that will be substituted into the message format. |
|
ELogException(java.lang.String msgFormat,
java.lang.String param)
Constructs a log exception with a parameter. |
Method Summary | |
---|---|
protected java.lang.String |
getBundleName()
Retrieves resource bundle name. |
java.lang.Object[] |
getParameters()
Returns a list of parameters. |
java.lang.String |
toString()
Returns localized exception string. |
java.lang.String |
toString(java.util.Locale locale)
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 |
---|
public ELogException(java.lang.String msgFormat)
msgFormat
- Exception details.public ELogException(java.lang.String msgFormat, java.lang.String param)
new ELogException("failed to load {0}", fileName);
msgFormat
- Exception details in message string format.param
- Message string parameter.public ELogException(java.lang.String msgFormat, java.lang.Exception param)
try { ... } catch (IOExeption e) { throw new ELogException("Encountered System Error {0}", e); }
msgFormat
- Exception details in message string format.param
- System exception.public ELogException(java.lang.String msgFormat, java.lang.Object[] params)
msgFormat
- Exception details in message string format.params
- List of message format parameters.Method Detail |
---|
public java.lang.Object[] getParameters()
getParameters
in class EBaseException
public java.lang.String toString()
toString
in class EBaseException
public java.lang.String toString(java.util.Locale locale)
toString
in class EBaseException
locale
- Locale.
protected java.lang.String getBundleName()
getBundleName
in class EBaseException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |