|
Jamaica 6.4 release 1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Error
public class Error
Sub-classes of Error describe abnormal exceptional states within the virtual machine or application. Errors are 'unchecked', that is they need not be declared to be thrown by a method nor must they be caught by a calling method. In most cases it is not useful to catch Errors.
| Constructor Summary | |
|---|---|
Error()
Create a new Error object with no detail message. |
|
Error(String s)
Create a new Error object with a given message. |
|
Error(String s,
Throwable ex)
Create a new Error object with a given message and the original cause. |
|
Error(Throwable ex)
Create a new Error object with the given cause. |
|
| 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 Error()
public Error(String s)
ensures
(s != null IMPLIES getMessage().equals(s));
s - message describing the error.
public Error(String s,
Throwable ex)
ensures
(s != null IMPLIES getMessage().equals(s),
ex != null IMPLIES getCause() == ex);
s - message describing the error.ex - cause of this error.public Error(Throwable ex)
ensures
(ex != null IMPLIES getCause() == ex && getMessage().equals(ex.toString()));
ex - cause of this error.
|
Jamaica 6.4 release 1
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||