org.apache.jena.atlas.web
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.jena.atlas.web.HttpException
All Implemented Interfaces:
Serializable

public class HttpException
extends RuntimeException

Class of HTTP Exceptions from Atlas code

See Also:
Serialized Form

Constructor Summary
HttpException(int responseCode, String statusLine)
           
HttpException(String message)
           
HttpException(String message, Throwable cause)
           
HttpException(Throwable cause)
           
 
Method Summary
 int getResponseCode()
          Gets the response code, may be -1 if unknown
 String getStatusLine()
          Gets the response code, may be null if unknown
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HttpException

public HttpException(int responseCode,
                     String statusLine)

HttpException

public HttpException(String message)

HttpException

public HttpException(String message,
                     Throwable cause)

HttpException

public HttpException(Throwable cause)
Method Detail

getResponseCode

public int getResponseCode()
Gets the response code, may be -1 if unknown

Returns:
Response Code if known, -1 otherwise

getStatusLine

public String getStatusLine()
Gets the response code, may be null if unknown

Returns:
Status line


Licenced under the Apache License, Version 2.0