org.cruxframework.crux.core.client.rest
Class RestError
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.cruxframework.crux.core.client.rest.RestError
- All Implemented Interfaces:
- Serializable
public class RestError
- extends Exception
Represents an error occurred during a rest service invocation
- Author:
- Thiago da Rosa de Bustamante
- See Also:
- Serialized Form
|
Method Summary |
int |
getStatusCode()
Returns the http status code returned by rest service |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
RestError
public RestError(int status,
String message)
- Constructor
- Parameters:
status - the http status code.message - the error message.
getStatusCode
public int getStatusCode()
- Returns the http status code returned by rest service
- Returns:
- the http status code.
Copyright © 2014. All rights reserved.