public class RestError extends Exception
| Constructor and Description |
|---|
RestError(int status,
String message)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getStatusCode()
Returns the http status code returned by rest service
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic RestError(int status,
String message)
status - the http status code.message - the error message.Copyright © 2015. All rights reserved.