org.otfeed
Class OTException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.otfeed.OTException
All Implemented Interfaces:
java.io.Serializable

public final class OTException
extends java.lang.RuntimeException

Runtime Exception that may hold OTError object describing an error condition reported by Opentick server.

See Also:
Serialized Form

Constructor Summary
OTException()
          Creates empty exception.
OTException(java.lang.Exception wrapped)
          Creates exception by wrapping some other exception.
OTException(OTError error)
          Creates exception by wrapping OTError object.
OTException(java.lang.String reason)
          Creates exception with text description.
 
Method Summary
 OTError getError()
          Returns wrapped OTError object (may be null).
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OTException

public OTException()
Creates empty exception.


OTException

public OTException(java.lang.String reason)
Creates exception with text description.

Parameters:
reason - description of the reason.

OTException

public OTException(java.lang.Exception wrapped)
Creates exception by wrapping some other exception.

Parameters:
wrapped - exception that caused the problem.

OTException

public OTException(OTError error)
Creates exception by wrapping OTError object.

Parameters:
error - describes error condition reported by Opentick server.
Method Detail

getError

public OTError getError()
Returns wrapped OTError object (may be null).

Returns:
error object.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Throwable


Copyright © 2007-2008 Mike Kroutikov. All Rights Reserved.