public abstract class AbstractQualifiedException extends Exception implements UnresolvedQualifiedMessage
Constructor and Description |
---|
AbstractQualifiedException(MessageID messageId,
Object... args) |
AbstractQualifiedException(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 . |
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() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
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 availableCopyright © 2024 levigo holding gmbh. All rights reserved.