Package org.apache.juneau
Class BasicAssertionError
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
org.apache.juneau.BasicAssertionError
- All Implemented Interfaces:
Serializable
An extension of
AssertionError
with helper constructors for messages with message-style arguments.
See Also:
-
Constructor Summary
ConstructorDescriptionBasicAssertionError
(String message, Object... args) Constructor.BasicAssertionError
(Throwable cause, String message, Object... args) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected static final String
getMessage
(Throwable cause, String msg, String def) Finds the message.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BasicAssertionError
Constructor.- Parameters:
message
- TheMessageFormat
-style message.args
- OptionalMessageFormat
-style arguments.
-
BasicAssertionError
Constructor.- Parameters:
cause
- The cause of this exception.message
- TheMessageFormat
-style message.args
- OptionalMessageFormat
-style arguments.
-
-
Method Details
-
getMessage
Finds the message.- Parameters:
cause
- The cause.msg
- The message.def
- The default value if both above arenull .- Returns:
- The resolved message.
-