com.novell.sentinel.client.http
Class HttpException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.novell.sentinel.client.http.HttpException
All Implemented Interfaces:
Serializable

public class HttpException
extends Exception

Exception class used to report errors from requests made via HttpRequestor.

See Also:
Serialized Form

Constructor Summary
HttpException(String msg)
           
HttpException(String msg, int _code)
           
HttpException(String msg, Throwable cause)
           
HttpException(String msg, Throwable cause, int _code)
           
HttpException(Throwable cause)
           
 
Method Summary
 int getCode()
          Get the HTTP Response code (if any) associated with this instance.
 String getMessage()
           
 boolean isCodeSet()
          Is an HTTP Response code set (lack of a code implies the error is other that an error reported from the HTTP request.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

HttpException

public HttpException(String msg)

HttpException

public HttpException(String msg,
                     Throwable cause)

HttpException

public HttpException(Throwable cause)

HttpException

public HttpException(String msg,
                     int _code)

HttpException

public HttpException(String msg,
                     Throwable cause,
                     int _code)
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

isCodeSet

public boolean isCodeSet()
Is an HTTP Response code set (lack of a code implies the error is other that an error reported from the HTTP request.


getCode

public int getCode()
Get the HTTP Response code (if any) associated with this instance.