Example usage for Java java.lang AssertionError fields, constructors, methods, implement or subclass
The text is from its open source code.
AssertionError(String message, Throwable cause) Constructs a new AssertionError with the specified detail message and cause. | |
AssertionError() Constructs an AssertionError with no detail message. | |
AssertionError(String detailMessage) This internal constructor does no processing on its string argument, even if it is a null reference. | |
AssertionError(Object detailMessage) Constructs an AssertionError with its detail message derived from the specified object, which is converted to a string as defined in section 15.18.1.1 of The Java™ Language Specification. | |
AssertionError(boolean detailMessage) Constructs an AssertionError with its detail message derived from the specified boolean , which is converted to a string as defined in section 15.18.1.1 of The Java™ Language Specification. | |
AssertionError(char detailMessage) Constructs an AssertionError with its detail message derived from the specified char , which is converted to a string as defined in section 15.18.1.1 of The Java™ Language Specification. | |
AssertionError(int detailMessage) Constructs an AssertionError with its detail message derived from the specified int , which is converted to a string as defined in section 15.18.1.1 of The Java™ Language Specification. | |
AssertionError(long detailMessage) Constructs an AssertionError with its detail message derived from the specified long , which is converted to a string as defined in section 15.18.1.1 of The Java™ Language Specification. | |
AssertionError(float detailMessage) Constructs an AssertionError with its detail message derived from the specified float , which is converted to a string as defined in section 15.18.1.1 of The Java™ Language Specification. | |
AssertionError(double detailMessage) Constructs an AssertionError with its detail message derived from the specified double , which is converted to a string as defined in section 15.18.1.1 of The Java™ Language Specification. |
Throwable | fillInStackTrace() Fills in the execution stack trace. |
Throwable | getCause() Returns the cause of this throwable or null if the cause is nonexistent or unknown. |
Class> | getClass() Returns the runtime class of this Object . |
String | getLocalizedMessage() Creates a localized description of this throwable. |
String | getMessage() Returns the detail message string of this throwable. |
StackTraceElement[] | getStackTrace() Provides programmatic access to the stack trace information printed by #printStackTrace() . |
Throwable | initCause(Throwable cause) Initializes the cause of this throwable to the specified value. |
void | printStackTrace() Prints this throwable and its backtrace to the standard error stream. |
void | setStackTrace(StackTraceElement[] stackTrace) Sets the stack trace elements that will be returned by #getStackTrace() and printed by #printStackTrace() and related methods. |
String | toString() Returns a short description of this throwable. |