Class VerifyException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.google.common.base.VerifyException
- All Implemented Interfaces:
Serializable
Exception thrown upon the failure of a verification check,
including those performed by the convenience methods of the
Verify
class.- Since:
- 17.0
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs aVerifyException
with no message.VerifyException
(@Nullable String message) Constructs aVerifyException
with the messagemessage
.VerifyException
(@Nullable String message, @Nullable Throwable cause) Constructs aVerifyException
with the messagemessage
and the causecause
.VerifyException
(@Nullable Throwable cause) Constructs aVerifyException
with the causecause
and a message that isnull
ifcause
is null, andcause.toString()
otherwise. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VerifyException
public VerifyException()Constructs aVerifyException
with no message. -
VerifyException
Constructs aVerifyException
with the messagemessage
. -
VerifyException
Constructs aVerifyException
with the causecause
and a message that isnull
ifcause
is null, andcause.toString()
otherwise.- Since:
- 19.0
-
VerifyException
Constructs aVerifyException
with the messagemessage
and the causecause
.- Since:
- 19.0
-