ControlException Class
- public class ControlException
extends RuntimeException
An exception class for use when throwing exceptions
from a control. It is recommended that you wrap exceptions
thrown by a control in a ControlException. This class
provides a means for adding exceptions that
may have been received by your control.
For more information on building Java controls, see
Building Custom Java Controls.
-
Hierarchy
-
Object
Throwable
Exception
RuntimeException
ControlException
-
All Implemented Interfaces
-
Serializable
-
Direct Known Subclasses
-
ControlException
-
ControlException(
String message, Throwable t)
- Constructs a ControlException object using the
specified String as a message, and the specified
Throwable as a nested exception.
|
-
ControlException(
String message)
- Constructs a ControlException object with the
specified String as a message.
|
Methods from java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ControlException
public ControlException(String
message,
Throwable
t)
- Constructs a ControlException object using the
specified String as a message, and the specified
Throwable as a nested exception.
ControlException
public ControlException(String
message)
- Constructs a ControlException object with the
specified String as a message.
getNestedException() Method
public Throwable
getNestedException()
Retrieves an exception nested within this exception.
Returns
- The nested exception.