java.lang
Class Exception

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CloseShellException, CommandException, java.security.GeneralSecurityException

public class Exception
extends java.lang.Throwable

Exception is the superclass of all classes that represent recoverable exceptions. When exceptions are thrown, they may be caught by application code.

See Also:
Throwable, Error, RuntimeException, Serialized Form

Constructor Summary
Exception()
          Constructs a new Exception that includes the current stack trace.
Exception(java.lang.String detailMessage)
          Constructs a new Exception with the current stack trace and the specified detail message.
Exception(java.lang.String detailMessage, java.lang.Throwable throwable)
          Constructs a new Exception with the current stack trace, the specified detail message and the specified cause.
Exception(java.lang.Throwable throwable)
          Constructs a new Exception with the current stack trace and the specified cause.
 
Method Summary
 java.lang.Class[] getClassContext()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exception

public Exception()
Constructs a new Exception that includes the current stack trace.


Exception

public Exception(java.lang.String detailMessage)
Constructs a new Exception with the current stack trace and the specified detail message.

Parameters:
detailMessage - the detail message for this exception.

Exception

public Exception(java.lang.String detailMessage,
                 java.lang.Throwable throwable)
Constructs a new Exception with the current stack trace, the specified detail message and the specified cause.

Parameters:
detailMessage - the detail message for this exception.
throwable - the cause of this exception.

Exception

public Exception(java.lang.Throwable throwable)
Constructs a new Exception with the current stack trace and the specified cause.

Parameters:
throwable - the cause of this exception.
Method Detail

getClassContext

public java.lang.Class[] getClassContext()


Copyright © 2007-2011 Apache Software Foundation. All Rights Reserved.