java.lang
public class Exception extends Throwable
RuntimeException
, which
does not need to be declared in a throws clause. Exceptions can be used
to represent almost any exceptional behavior, such as programming errors,
mouse movements, keyboard clicking, etc.
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
Exception()
Create an exception without a message. | |
Exception(String s)
Create an exception with a message. | |
Exception(String s, Throwable cause)
Create an exception with a message and a cause.
| |
Exception(Throwable cause)
Create an exception with a given cause, and a message of
cause == null ? |
See Also: Exception
Parameters: s the message
See Also: Exception
Parameters: s the message string cause the cause of this error
Since: 1.4
cause == null ? null : cause.toString()
.
Parameters: cause the cause of this exception
Since: 1.4