org.cruxframework.crux.core.server.rest.spi
Class RestFailure

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.cruxframework.crux.core.server.rest.spi.RestFailure
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BadRequestException, ForbiddenException, InternalServerErrorException, MethodNotAllowedException, NotAcceptableException, NotFoundException, UnauthorizedException, UnsupportedMediaTypeException

public class RestFailure
extends RuntimeException

Author:
Thiago da Rosa de Bustamante
See Also:
Serialized Form

Constructor Summary
RestFailure(int responseCode)
           
RestFailure(String s, int responseCode)
           
RestFailure(String message, String resp, Throwable throwable, int responseCode)
           
RestFailure(String s, Throwable throwable, int responseCode)
           
RestFailure(Throwable throwable, int responseCode)
           
 
Method Summary
 int getResponseCode()
           
 String getResponseMessage()
           
 void setResponseMessage(String responseMessage)
           
 
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

RestFailure

public RestFailure(int responseCode)

RestFailure

public RestFailure(String s,
                   Throwable throwable,
                   int responseCode)

RestFailure

public RestFailure(String message,
                   String resp,
                   Throwable throwable,
                   int responseCode)

RestFailure

public RestFailure(String s,
                   int responseCode)

RestFailure

public RestFailure(Throwable throwable,
                   int responseCode)
Method Detail

getResponseCode

public int getResponseCode()

getResponseMessage

public String getResponseMessage()

setResponseMessage

public void setResponseMessage(String responseMessage)


Copyright © 2015. All rights reserved.