API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.lang.reflect. UndeclaredThrowableException View Source
Author(s)
Peter Jones
Since
1.3
Version
1.15, 06/04/07
Serial
Hierarchy
 Object
      Throwable
          Exception
              RuntimeException
                  UndeclaredThrowableException
Implements
Subclasses
Description
public exception UndeclaredThrowableException
  Thrown by a method invocation on a proxy instance if its invocation handler's invoke method throws a checked exception (a Throwable that is not assignable to RuntimeException or Error) that is not assignable to any of the exception types declared in the throws clause of the method that was invoked on the proxy instance and dispatched to the invocation handler.
See also:    InvocationHandler
Constructors
public UndeclaredThrowableException (Throwable undeclaredThrowable)
  Constructs an UndeclaredThrowableException with the specified Throwable.
public UndeclaredThrowableException (Throwable undeclaredThrowable, String s)
  Constructs an UndeclaredThrowableException with the specified Throwable and a detail message.
Methods
Hide/Show inherited methods
publicsynchronizednative Throwable fillInStackTrace () [Inherited From Throwable]
  Fills in the execution stack trace.
public Throwable getCause () [Overrides Throwable]
  Returns the cause of this exception (the Throwable instance wrapped in this UndeclaredThrowableException, which may be null).
public String getLocalizedMessage () [Inherited From Throwable]
  Creates a localized description of this throwable.
public String getMessage () [Inherited From Throwable]
  Returns the detail message string of this throwable.
public StackTraceElement getStackTrace () [Inherited From Throwable]
  Provides programmatic access to the stack trace information printed by Throwable.printStackTrace().
public Throwable getUndeclaredThrowable ()
  Returns the Throwable instance wrapped in this UndeclaredThrowableException, which may be null.
publicsynchronized Throwable initCause (Throwable cause) [Inherited From Throwable]
  Initializes the cause of this throwable to the specified value.
public void printStackTrace () [Inherited From Throwable]
  Prints this throwable and its backtrace to the standard error stream.
public void printStackTrace (PrintStream s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print stream.
public void printStackTrace (PrintWriter s) [Inherited From Throwable]
  Prints this throwable and its backtrace to the specified print writer.
public void setStackTrace (StackTraceElement stackTrace) [Inherited From Throwable]
  Sets the stack trace elements that will be returned by Throwable.getStackTrace() and printed by Throwable.printStackTrace() and related methods.
public String toString () [Inherited From Throwable]
  Returns a short description of this throwable.
Fields
Hide/Show inherited fields
pack-privatefinalstatic long serialVersionUID = "330127114055056639"
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar