public abstract class AbstractQualifiedRuntimeException extends RuntimeException implements UnresolvedQualifiedLogEvent
Constructor and Description |
---|
AbstractQualifiedRuntimeException(MessageID messageId,
Object... args) |
AbstractQualifiedRuntimeException(MessageID messageId,
Throwable cause,
Object... args) |
Modifier and Type | Method and Description |
---|---|
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 . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AbstractQualifiedRuntimeException(MessageID messageId, Object... args)
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 messagenull
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 nullCopyright © 2024 levigo holding gmbh. All rights reserved.