public class AssertionFailure extends AssertionError
Assertion failures should be raised when code finds itself in a state that should be impossible. It should not be raised in response to any predictable error condition. Assertion failures indicate that something has gone badly wrong, and that the assumptions under which library code has been developed are not holding.
This extends AssertionError
, adding convenient
constructors with messages and causes.
Constructor and Description |
---|
AssertionFailure(String message) |
AssertionFailure(String message,
Throwable cause) |
AssertionFailure(Throwable cause) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public AssertionFailure(String message)
public AssertionFailure(Throwable cause)
public AssertionFailure(String message, Throwable cause)
Copyright © 2000–2018 BioJava. All rights reserved.