java.lang
Class Exception
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- Direct Known Subclasses:
- ClassNotFoundException, IllegalAccessException, InstantiationException, InterruptedException, IOException, RuntimeException
public class Exception extends 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
-
-
Constructor Summary
Constructors Constructor and Description Exception()
Constructs a newException
that includes the current stack trace.Exception(String detailMessage)
Constructs a newException
with the current stack trace and the specified detail message.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
fillInStackTrace, getMessage, getStackTrace, printStackTrace, printStackTrace, toString
-
-
-
-
Constructor Detail
-
Exception
public Exception()
Constructs a newException
that includes the current stack trace.
-
Exception
public Exception(String detailMessage)
Constructs a newException
with the current stack trace and the specified detail message.- Parameters:
detailMessage
- the detail message for this exception.
-
-