|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
public class Exception
Exception is a base class for flagged exceptions.
| Constructor Summary | |
|---|---|
Exception()
Constructor for an Exception with no detail message. |
|
Exception(String s)
Constructor for an Exception with given detail message. |
|
Exception(String s,
Throwable ex)
Constructor for an Exception with given detail message and cause. |
|
Exception(Throwable ex)
Constructor for an Exception with given cause and detail message set to ex.toString(). |
|
| Method Summary |
|---|
| 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 |
|---|
public Exception()
public Exception(String s)
ensures
(s != null IMPLIES getMessage().equals(s));
s - the detail message.public Exception(Throwable ex)
ensures
(ex != null IMPLIES getCause() == ex && getMessage().equals(ex.toString()));
ex - the cause why this exception was created or null if
none.
public Exception(String s,
Throwable ex)
ensures
(s != null IMPLIES getMessage().equals(s),
ex != null IMPLIES getCause() == ex);
s - the detail message.ex - the cause why this exception was created or null if
none.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||