@GwtCompatible public class InvalidCheckException extends RuntimeException
Note: The validity of checks is only checked in few cases, so you should not rely on the Better Checks library to report erroneous uses of checks. Instead, keep your checks simple and refer to the documentation of each check method for precise information on what the method does.
For easier debugging, invalid check errors are reported by a separate type of
exception instead of IllegalArgumentException, which could easily
lead to confusion. This (and the fact that this exception does not extend
IllegalArgumentException) also ensures that such errors are not accidentally
caught by the client, which could turn an obvious bug in the server into a
very-hard-to-find bug in the client.
| Constructor and Description |
|---|
InvalidCheckException(String message)
Constructs a new invalid check exception with the specified detail
message.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic InvalidCheckException(String message)
Throwable.initCause(Throwable).message - the detail message. The detail message is saved for later
retrieval by the Throwable.getMessage() method.Copyright © 2012–2017 Michael Faes. All rights reserved.