com.oakgrovesystems.reactor.client
Class ReactorProxyException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--com.oakgrovesystems.reactor.client.ReactorProxyException
All Implemented Interfaces:
java.io.Serializable

public class ReactorProxyException
extends java.lang.Exception

See Also:
Serialized Form

Field Summary
protected  com.oakgrovesystems.reactor.ReactorResponse response
           
protected  java.lang.Throwable rootCause
           
 
Constructor Summary
ReactorProxyException()
          Creates a new exception
ReactorProxyException(java.lang.String message)
          Creates a new exception and sets the error message
ReactorProxyException(java.lang.String message, com.oakgrovesystems.reactor.ReactorResponse response)
          Creates a new exception and sets the message and response from reactor server
ReactorProxyException(java.lang.String message, java.lang.Throwable t)
          Creates a new exception and sets the message and root cause of the exception
 
Method Summary
 java.lang.String getMessage()
          Gets the message of the exception
 com.oakgrovesystems.reactor.ReactorResponse getReactorResponse()
          Gets the reactor response
 int getResponseCodeNbr()
          Gets the error code number of the reactor resposne
 java.lang.String getResponseDebugInfo()
          Gets the debug info of the reactor resposnse
 java.lang.String getResponseMessage()
          Gets the error message of the reactor resposne
 java.lang.Throwable getRootCause()
          Gets the root cause of the exception.
 
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
 

Field Detail

rootCause

protected java.lang.Throwable rootCause

response

protected com.oakgrovesystems.reactor.ReactorResponse response
Constructor Detail

ReactorProxyException

public ReactorProxyException()
Creates a new exception


ReactorProxyException

public ReactorProxyException(java.lang.String message)
Creates a new exception and sets the error message

Parameters:
message - The error message

ReactorProxyException

public ReactorProxyException(java.lang.String message,
                             java.lang.Throwable t)
Creates a new exception and sets the message and root cause of the exception

Parameters:
message - the error message
t - The root cause

ReactorProxyException

public ReactorProxyException(java.lang.String message,
                             com.oakgrovesystems.reactor.ReactorResponse response)
Creates a new exception and sets the message and response from reactor server

Parameters:
message - the error message
response - the response from reactor server
Method Detail

getRootCause

public java.lang.Throwable getRootCause()
Gets the root cause of the exception.

Returns:
the exception that resulted in this exception or null

getReactorResponse

public com.oakgrovesystems.reactor.ReactorResponse getReactorResponse()
Gets the reactor response

Returns:
the response from reactor server that resulted in this exception

getResponseCodeNbr

public int getResponseCodeNbr()
Gets the error code number of the reactor resposne

Returns:
the code number of reactor response. returns 0 if response is null

getResponseMessage

public java.lang.String getResponseMessage()
Gets the error message of the reactor resposne

Returns:
the error message of reactor response.

getResponseDebugInfo

public java.lang.String getResponseDebugInfo()
Gets the debug info of the reactor resposnse

Returns:
the debug info of reactor response.

getMessage

public java.lang.String getMessage()
Gets the message of the exception

Overrides:
getMessage in class java.lang.Throwable
Returns:
the error message of the exeception. If reactor response is not null then reactor response is concatenated.


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.