org.omegahat.Graphics.Primitives
Class DrawChildException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--org.omegahat.Graphics.Primitives.DrawChildException
All Implemented Interfaces:
java.io.Serializable

public class DrawChildException
extends java.lang.RuntimeException

Exception thrown when an error or exception occurs in drawing an element in a GraphicalContainer object.

The exception is thrown back through the chain of nested containers, providing the user with a traceback of the graphical structure, as opposed to the Java methods, which generally give no useful information.

See Also:
Serialized Form

Field Summary
protected  java.lang.Throwable error
          The error that occurred drawing this component or one of its children.
 
Constructor Summary
DrawChildException(java.lang.Throwable e)
           
 
Method Summary
 java.lang.Throwable getError()
          Accessor for error field
 java.lang.Throwable setError(java.lang.Throwable value)
          Accessor for setting error field
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

error

protected java.lang.Throwable error
The error that occurred drawing this component or one of its children.

The DrawChildException assembles information on the lineage of the component that encountered the error.

Constructor Detail

DrawChildException

public DrawChildException(java.lang.Throwable e)
Method Detail

getError

public java.lang.Throwable getError()
Accessor for error field

setError

public java.lang.Throwable setError(java.lang.Throwable value)
Accessor for setting error field

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable