com.sun.slamd.http
Class HTTPException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.sun.slamd.http.HTTPException
All Implemented Interfaces:
java.io.Serializable

public class HTTPException
extends java.lang.Exception

This class defines an exception that may be thrown if a problem occurs while attempting to communicate with a server over HTTP.

See Also:
Serialized Form

Constructor Summary
HTTPException(java.lang.String message)
          Creates a new exception that may be thrown if a problem occurs while trying to communicate with a server over HTTP.
HTTPException(java.lang.String message, java.lang.Exception parentException)
          Creates a new exception that may be thrown if a problem occurs while trying to communicate with a server over HTTP.
 
Method Summary
 java.lang.Exception getParentException()
          Retrieves the parent exception that triggered this HTTP exception.
 
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

HTTPException

public HTTPException(java.lang.String message)
Creates a new exception that may be thrown if a problem occurs while trying to communicate with a server over HTTP.

Parameters:
message - A message providing information about the exception.

HTTPException

public HTTPException(java.lang.String message,
                     java.lang.Exception parentException)
Creates a new exception that may be thrown if a problem occurs while trying to communicate with a server over HTTP.

Parameters:
message - A message providing information about the exception.
parentException - The parent exception that triggered this HTTP exception.
Method Detail

getParentException

public java.lang.Exception getParentException()
Retrieves the parent exception that triggered this HTTP exception.

Returns:
The parent exception that triggered this HTTP, or null null if no parent exception is available.