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
,java.io.Serializable
final class AssertionErrorWithFacts extends java.lang.AssertionError implements ErrorWithFacts
AnAssertionError
composed of structuredFact
instances and other string messages.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
AssertionErrorWithFacts(com.google.common.collect.ImmutableList<java.lang.String> messages, com.google.common.collect.ImmutableList<Fact> facts, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static AssertionErrorWithFacts
create(com.google.common.collect.ImmutableList<java.lang.String> messages, com.google.common.collect.ImmutableList<Fact> facts, java.lang.Throwable cause)
com.google.common.collect.ImmutableList<Fact>
facts()
java.lang.Throwable
getCause()
java.lang.String
toString()
-
-
-
Field Detail
-
facts
final com.google.common.collect.ImmutableList<Fact> facts
-
cause
private final java.lang.Throwable cause
Separate cause field, in case initCause() fails.
-
-
Constructor Detail
-
AssertionErrorWithFacts
private AssertionErrorWithFacts(com.google.common.collect.ImmutableList<java.lang.String> messages, com.google.common.collect.ImmutableList<Fact> facts, java.lang.Throwable cause)
-
-
Method Detail
-
create
static AssertionErrorWithFacts create(com.google.common.collect.ImmutableList<java.lang.String> messages, com.google.common.collect.ImmutableList<Fact> facts, java.lang.Throwable cause)
-
getCause
public java.lang.Throwable getCause()
- Overrides:
getCause
in classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
facts
public com.google.common.collect.ImmutableList<Fact> facts()
- Specified by:
facts
in interfaceErrorWithFacts
-
-