org.cruxframework.crux.core.client.rest
Class RestError

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
RestError(int status, String message)
          Constructor
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RestError

public RestError(int status,
                 String message)
Constructor

Parameters:
status - the http status code.
message - the error message.
Method Detail

getStatusCode

public int getStatusCode()
Returns the http status code returned by rest service

Returns:
the http status code.


Copyright © 2014. All rights reserved.