Package com.google.common.truth
Class AssertionErrorWithFacts
java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
com.google.common.truth.AssertionErrorWithFacts
- All Implemented Interfaces:
ErrorWithFacts
,Serializable
An
AssertionError
composed of structured Fact
instances and other string
messages.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
AssertionErrorWithFacts
(com.google.common.collect.ImmutableList<String> messages, com.google.common.collect.ImmutableList<Fact> facts, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
facts
-
cause
Separate cause field, in case initCause() fails.
-
-
Constructor Details
-
AssertionErrorWithFacts
-
-
Method Details
-
create
static AssertionErrorWithFacts create(com.google.common.collect.ImmutableList<String> messages, com.google.common.collect.ImmutableList<Fact> facts, Throwable cause) -
getCause
-
toString
-
facts
- Specified by:
facts
in interfaceErrorWithFacts
-