com.splunk
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.splunk.HttpException
All Implemented Interfaces:
java.io.Serializable

public class HttpException
extends java.lang.RuntimeException

Thrown for HTTP responses that return an error status code.

See Also:
Serialized Form

Method Summary
 java.lang.String getDetail()
          Returns the HTTP error response message detail.
 int getStatus()
          Returns the HTTP status code.
 
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
 

Method Detail

getDetail

public java.lang.String getDetail()
Returns the HTTP error response message detail.

Returns:
HTTP error response message detail.

getStatus

public int getStatus()
Returns the HTTP status code.

Returns:
HTTP status code.