com.sun.tdk.sampleapi
Class GetQuoteException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.io.IOException
                    |
                    +--com.sun.tdk.sampleapi.GetQuoteException
All Implemented Interfaces:
java.io.Serializable

public class GetQuoteException
extends java.io.IOException

This exception may be thrown by methods that have detected an i/o exception while retrieving requested stock information.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
GetQuoteException(java.lang.String message, java.lang.Exception cause)
          Constructs a GetQuoteException with the specified detail message and nested exception.
 
Method Summary
 java.lang.Exception getNested()
          Gets the nested exception.
 java.lang.String toString()
          This method prints super.toString() followed by String reprsentation of nested exception.
 
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

GetQuoteException

public GetQuoteException(java.lang.String message,
                         java.lang.Exception cause)
Constructs a GetQuoteException with the specified detail message and nested exception. Argument message can be null as can cause.

Parameters:
message - The detail message pertaining to this exception. This value can be null.
cause - An exception that triggered this exception. This value can be null.
Method Detail

getNested

public java.lang.Exception getNested()
Gets the nested exception.

Returns:
Nested exception or null if there is no nested exception

toString

public java.lang.String toString()
This method prints super.toString() followed by String reprsentation of nested exception.

Overrides:
toString in class java.lang.Throwable
See Also:
Throwable.toString()