Openwings API Documentation (v1.1)

net.openwings.ui
Class UserInterfaceException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.openwings.ui.UserInterfaceException
All Implemented Interfaces:
java.io.Serializable

public class UserInterfaceException
extends java.lang.Exception

This class defines an exception specific to using a UserInterfaceFactory. This exception may be used to encapsulate another exception generated during user interface construction.

See Also:
Serialized Form

Constructor Summary
UserInterfaceException()
          Constructs a UserInterfaceException with no specified detail message.
UserInterfaceException(java.lang.Exception e, java.lang.String message)
          Constructs a new UserInterfaceException.
UserInterfaceException(java.lang.String message)
          Constructs a UserInterfaceException with the specified detail message.
 
Method Summary
 java.lang.Exception getEmbeddedException()
          Get the Exception that triggered this exception.
 java.lang.String getMessage()
          Returns the error message string of this throwable object.
 void printStackTrace()
          Prints this Throwable and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintStream s)
          Prints this Throwable and its backtrace to the standard error stream.
 void printStackTrace(java.io.PrintWriter s)
          Prints this Throwable and its backtrace to the standard error stream.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserInterfaceException

public UserInterfaceException()
Constructs a UserInterfaceException with no specified detail message.


UserInterfaceException

public UserInterfaceException(java.lang.String message)
Constructs a UserInterfaceException with the specified detail message.

Parameters:
message - the detail message

UserInterfaceException

public UserInterfaceException(java.lang.Exception e,
                              java.lang.String message)
Constructs a new UserInterfaceException.

Parameters:
e - The Exception that triggered this exception. May be null.
message - The text message to be associated with this exception.
Method Detail

getEmbeddedException

public java.lang.Exception getEmbeddedException()
Get the Exception that triggered this exception.

Returns:
The Exception that triggered this exception. May be null.

getMessage

public java.lang.String getMessage()
Returns the error message string of this throwable object. Add the embedded exception message to the message.


printStackTrace

public void printStackTrace()
Prints this Throwable and its backtrace to the standard error stream. This method prints a stack trace for this Throwable object on the error output stream that is the value of the field System.err. If an embedded exception is present, will print out the embedded exception stack trace, otherwise will print the exception stack trace.


printStackTrace

public void printStackTrace(java.io.PrintStream s)
Prints this Throwable and its backtrace to the standard error stream. This method prints a stack trace for this Throwable object on the error output stream that is the value of the field System.err. If an embedded exception is present, will print out the embedded exception stack trace, otherwise will print the exception stack trace.

Parameters:
s - PrintStream to use for output

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Prints this Throwable and its backtrace to the standard error stream. This method prints a stack trace for this Throwable object on the error output stream that is the value of the field System.err. If an embedded exception is present, will print out the embedded exception stack trace, otherwise will print the exception stack trace.

Parameters:
s - PrintWriter to use for output

Openwings API Documentation (v1.1)