public class Exception extends Throwable
Exception
and its subclasses are a form of
Throwable
that indicates conditions that a reasonable
application might want to catch.Error
Constructor and Description |
---|
Exception()
Constructs an
Exception with no specified detail message. |
Exception(String s)
Constructs an
Exception with the specified detail message. |
getMessage, initCause, printStackTrace, printStackTrace, toString
public Exception()
Exception
with no specified detail message.public Exception(String s)
Exception
with the specified detail message.s
- the detail message.