public class RoutingException extends Exception
| Constructor and Description |
|---|
RoutingException(int code,
Object[] args)
Creates the exception with an error code and parameters.
|
RoutingException(int code,
Object[] args,
Throwable rootException)
Creates the exception with an error code, parameters and a
Throwable root cause. |
RoutingException(RoutingException re) |
RoutingException(String msg)
Constructs the exception with an error message.
|
RoutingException(String msg,
int code)
Constructs the exception with an error message and an error code.
|
| Modifier and Type | Method and Description |
|---|---|
Object[] |
getArgs()
Gets the arguments associated with this exception.
|
int |
getCode()
Gets the error code associated with this error.
|
String |
getMessage()
Gets the message string of this throwable.
|
String |
getMessage(Locale locale)
Gets a localized error message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RoutingException(String msg)
msg - The error message generated by the server.public RoutingException(String msg, int code)
msg - The error message generated by the server.code - The error code generated by the server.public RoutingException(int code,
Object[] args)
code - The error code generated by the server.args - The argument that needs to be passed along with this exception.public RoutingException(int code,
Object[] args,
Throwable rootException)
Throwable root cause.code - The error code generated by the server.args - The argument that needs to be passed along with this exception.rootException - The original exception being thrown from the server.public RoutingException(RoutingException re)
public int getCode()
public Object[] getArgs()
public String getMessage(Locale locale)
locale - The desired locale to use.public String getMessage()
getMessage in class ThrowableThrowable instance (which may be null).