public class UnknownPropertyNameException extends Exception implements L10NMessage
Constructor and Description |
---|
UnknownPropertyNameException(String message)
Constructs a
UnknownPropertyNameException with a detailed
message. |
UnknownPropertyNameException(String errorCode,
Object[] args)
This constructor is used to pass the localized error message
At this level, the locale of the caller is not known and it is
not possible to throw localized error message at this level.
|
Modifier and Type | Method and Description |
---|---|
String |
getErrorCode()
Returns error code associated with this error message.
|
String |
getL10NMessage(Locale locale)
Use this method to get localized error message directly.
|
String |
getMessage()
Use this method to get error message in default ENGLISH locale.
|
Object[] |
getMessageArgs()
Returns arguments for formatting this error message.
|
String |
getResourceBundleName()
Returns resource bundle name associated with this error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnknownPropertyNameException(String errorCode, Object[] args)
errorCode
- Key to resource bundle. You can use
String localizedStr = rb.getString(errorCode)
args
- arguments to message. If it is not present pass the
as null
be displayed according to user's preferred locale.public UnknownPropertyNameException(String message)
UnknownPropertyNameException
with a detailed
message.message
- Exception Message.
Detailed message for this exception.public String getResourceBundleName()
getResourceBundleName
in interface L10NMessage
public String getErrorCode()
getErrorCode
in interface L10NMessage
public Object[] getMessageArgs()
getMessageArgs
in interface L10NMessage
public String getMessage()
L10NMessage
getMessage
in interface L10NMessage
getMessage
in class Throwable
public String getL10NMessage(Locale locale)
L10NMessage
getL10NMessage
in interface L10NMessage
locale
- Locale of the error message.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.