com.flat502.rox.http
Class ProcessingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.flat502.rox.http.ProcessingException
All Implemented Interfaces:
java.io.Serializable

public class ProcessingException
extends java.lang.Exception

Encapsulates a general processing exception.

An exception that wraps up another exception that was raised during processing performed in the central processing loop of an HttpRpcProcessor instance and that was not directly related to an HTTP message instance.

A processing exception may be associated with a Socket instance. If so the socket can be retrieved using the getSocket() method.

See Also:
Serialized Form

Constructor Summary
ProcessingException(HttpRpcProcessor processor, java.net.Socket socket, java.lang.Throwable cause)
           
ProcessingException(java.lang.Throwable cause)
           
 
Method Summary
 HttpRpcProcessor getProcessor()
           
 java.net.Socket getSocket()
          Get the socket the processing exception is associated with.
 
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

ProcessingException

public ProcessingException(java.lang.Throwable cause)

ProcessingException

public ProcessingException(HttpRpcProcessor processor,
                           java.net.Socket socket,
                           java.lang.Throwable cause)
Method Detail

getSocket

public java.net.Socket getSocket()
Get the socket the processing exception is associated with.

Returns:
The socket associated with this exception. May be null.

getProcessor

public HttpRpcProcessor getProcessor()