chrriis.uihierarchy
Class UIHException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bychrriis.uihierarchy.UIHException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IllegalConstraintsException

public class UIHException
extends RuntimeException

The super class of the UIHierarchy exceptions that can occur.

Version:
1.0 2004.02.11
Author:
Christopher Deckers (chrriis@brainlex.com)
See Also:
Serialized Form

Constructor Summary
UIHException(SingleLevelAccessor accessor, String message)
          Construct a UIHException.
UIHException(SingleLevelAccessor accessor, String message, Throwable target)
          Construct a UIHException, nesting a cause.
UIHException(SingleLevelAccessor accessor, Throwable target)
          Construct a UIHException, nesting a cause.
 
Method Summary
 SingleLevelAccessor getAccessor()
          Get an accessor to the level that failed.
 Throwable getCause()
          Get the throwable that triggered this constraints exception.
 void printStackTrace()
          Prints the stack trace.
 void printStackTrace(PrintStream ps)
          Prints the stack trace to a print stream.
 void printStackTrace(PrintWriter s)
          Prints the stack trace to a print writer.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UIHException

public UIHException(SingleLevelAccessor accessor,
                    String message)
Construct a UIHException.

Parameters:
accessor - The accessor of the component for which the exception was raised.
message - The message of the exception.

UIHException

public UIHException(SingleLevelAccessor accessor,
                    Throwable target)
Construct a UIHException, nesting a cause.

Parameters:
accessor - The accessor of the component for which the exception was raised.
target - The throwable that triggered this exception.

UIHException

public UIHException(SingleLevelAccessor accessor,
                    String message,
                    Throwable target)
Construct a UIHException, nesting a cause.

Parameters:
accessor - The accessor of the component for which the exception was raised.
message - The message of the exception.
target - The throwable that triggered this exception.
Method Detail

getAccessor

public SingleLevelAccessor getAccessor()
Get an accessor to the level that failed.

Returns:
The accessor.

getCause

public Throwable getCause()
Get the throwable that triggered this constraints exception.

Returns:
The cause.

printStackTrace

public void printStackTrace()
Prints the stack trace.


printStackTrace

public void printStackTrace(PrintWriter s)
Prints the stack trace to a print writer.

Parameters:
s - The print writer.

printStackTrace

public void printStackTrace(PrintStream ps)
Prints the stack trace to a print stream.

Parameters:
ps - The print stream.