co.cask.common.http.exception
Class HttpFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by co.cask.common.http.exception.HttpFailureException
All Implemented Interfaces:
Serializable

public class HttpFailureException
extends RuntimeException

Runtime exception thrown when execution of HTTP request is considered a failure.

See Also:
Serialized Form

Constructor Summary
HttpFailureException(String message, int statusCode)
           
HttpFailureException(String message, Throwable cause, int statusCode)
           
HttpFailureException(Throwable cause, int statusCode)
           
 
Method Summary
 int getStatusCode()
           
 
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

HttpFailureException

public HttpFailureException(String message,
                            int statusCode)

HttpFailureException

public HttpFailureException(String message,
                            Throwable cause,
                            int statusCode)

HttpFailureException

public HttpFailureException(Throwable cause,
                            int statusCode)
Method Detail

getStatusCode

public int getStatusCode()


Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.