public class EntitlementException extends Exception
Constructor and Description |
---|
EntitlementException(int errorCode)
Creates an entitlement exception.
|
EntitlementException(int errorCode,
Object... params)
Creates an entitlement exception.
|
EntitlementException(int errorCode,
Object[] params,
Throwable cause)
Creates an entitlement exception.
|
EntitlementException(int errorCode,
Throwable cause)
Creates an entitlement exception.
|
EntitlementException(int errorCode,
Throwable cause,
Object... params) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Returns error code.
|
String |
getLocalizedMessage()
Returns localized exception message.
|
String |
getLocalizedMessage(Locale locale)
Returns localized exception message using the errorCode as key.
|
String |
getMessage()
Returns exception message.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public EntitlementException(int errorCode)
errorCode
- Error code.public EntitlementException(int errorCode, Object... params)
errorCode
- Error code.params
- Parameters for formatting the message string.public EntitlementException(int errorCode, Throwable cause)
errorCode
- Error code.cause
- Root cause.public EntitlementException(int errorCode, Object[] params, Throwable cause)
errorCode
- Error code.params
- Parameters for formatting the message string.cause
- Root cause.public int getErrorCode()
public String getMessage()
getMessage
in class Throwable
public String getLocalizedMessage()
getLocalizedMessage
in class Throwable
Copyright © 2010-2018, ForgeRock All Rights Reserved.