public class ELogException extends EBaseException
MessageFormat
,
Serialized FormmParams
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.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