|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Error
java.lang.AssertionError
public class AssertionError
An AssertionError represents an assertion that failed. The optional second value in an assert statement is used to initialize the AssertionError. The value is converted to String and used as the error-message.
Constructor Summary | |
---|---|
AssertionError()
Create AsseritionError without message. |
|
AssertionError(boolean s)
Create AssertionError. |
|
AssertionError(char s)
Create AssertionError. |
|
AssertionError(double s)
Create AssertionError. |
|
AssertionError(float s)
Create AssertionError. |
|
AssertionError(int s)
Create AssertionError. |
|
AssertionError(long s)
Create AssertionError. |
|
AssertionError(Object s)
Create AssertionError. |
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 AssertionError()
public AssertionError(Object s)
s
- object that will be converte to a string that describes
the failed assertion.public AssertionError(boolean s)
s
- boolean that will be converted to a string that
describes the failed assertion.public AssertionError(char s)
s
- char that will be converted to a string that describes
the failed assertion.public AssertionError(int s)
s
- int that will be converted to a string that describes
the failed assertion.public AssertionError(long s)
s
- long that will be converted to a string that describes
the failed assertion.public AssertionError(float s)
s
- float that will be converted to a string that describes
the failed assertion.public AssertionError(double s)
s
- double that will be converted to a string that describes
the failed assertion.
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |