|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException com.levigo.util.log.qualified.AbstractQualifiedRuntimeException
public abstract class AbstractQualifiedRuntimeException
Constructor Summary | |
---|---|
AbstractQualifiedRuntimeException(MessageID messageId,
Object... args)
|
|
AbstractQualifiedRuntimeException(MessageID messageId,
Throwable cause,
Object... args)
|
Method Summary | |
---|---|
Object[] |
getArguments()
|
String |
getId()
returns the message id of this logging event in the format COMPONENT_ID-EVENT_ID . |
Level |
getLevel()
|
String |
getMessage()
Resolves and returns the human-readable message text of this qualified entity using the current default locale, i.e. |
String |
getMessage(Locale locale)
Resolves and returns the human-readable message text of this qualified entity using the specified Locale . |
MessageID |
getMessageID()
|
Throwable |
getThrowable()
returns a associated Throwable which may be the cause of the
QualifiedLogEvent . |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractQualifiedRuntimeException(MessageID messageId, Object... args)
public AbstractQualifiedRuntimeException(MessageID messageId, Throwable cause, Object... args)
Method Detail |
---|
public MessageID getMessageID()
getMessageID
in interface UnresolvedQualifiedMessage
public String getId()
QualifiedMessage
COMPONENT_ID-EVENT_ID
.
The COMPONENT_ID and EVENT_ID may contain arbitrary characters
except the dash (-
).
getId
in interface QualifiedMessage
public Object[] getArguments()
getArguments
in interface UnresolvedQualifiedMessage
public String getMessage()
QualifiedMessage
Locale.getDefault()
.
Caveats:
null
.
getMessage
in interface QualifiedMessage
getMessage
in class Throwable
public String getMessage(Locale locale)
UnresolvedQualifiedMessage
Locale
. Message IDs are not guaranteed to be accompanied with a
human-readable message. Therefore this method may return null
.
getMessage
in interface UnresolvedQualifiedMessage
locale
- the Locale
in which so resolve the message
null
if
no human-readable message is availablepublic Level getLevel()
getLevel
in interface QualifiedLogEvent
public Throwable getThrowable()
QualifiedLogEvent
Throwable
which may be the cause of the
QualifiedLogEvent
.
getThrowable
in interface QualifiedLogEvent
Throwable
or null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |