public class OaasRuntimeException extends RuntimeException
| Constructor and Description |
|---|
OaasRuntimeException(String message,
Object... parameters)
Creates an exception.
|
OaasRuntimeException(String message,
Throwable cause,
Object... parameters)
Creates an exception.
|
OaasRuntimeException(Throwable cause)
Creates an exception.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalizedMessage()
Gets the localized message.
|
String |
getLocalizedMessage(String localeName)
Gets the localized message using a given locale.
|
String |
getMessage()
Uses localized messages if you have them.
|
String |
getMessageCode()
Returns the message code.
|
Object[] |
getParameters()
Gets the parameters, if any, that were set in the constructor.
|
int |
getRestStatusCode()
Gets the REST status code.
|
static Throwable |
getRootCause(Throwable throwable)
Gets the real (deepest) root cause of an exception.
|
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic OaasRuntimeException(String message, Throwable cause, Object... parameters)
message - The exception message.cause - The cause of the exception.parameters - The optional parameters for the message.public OaasRuntimeException(String message, Object... parameters)
message - The exception message.parameters - The optional parameters for the message.public OaasRuntimeException(Throwable cause)
cause - The cause of the exception.public Object[] getParameters()
public String getLocalizedMessage(String localeName)
localeName - The name of the locale for the message.public String getLocalizedMessage()
getLocalizedMessage in class Throwablepublic String getMessage()
getMessage in class Throwablepublic static Throwable getRootCause(Throwable throwable)
throwable - the exception.public int getRestStatusCode()
public String getMessageCode()
Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.