Class AssertionErrorWithFacts

java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.AssertionError
com.google.common.truth.AssertionErrorWithFacts
All Implemented Interfaces:
ErrorWithFacts, Serializable

final class AssertionErrorWithFacts extends AssertionError implements ErrorWithFacts
An AssertionError composed of structured Fact instances and other string messages.
  • Field Details

    • facts

      final com.google.common.collect.ImmutableList<Fact> facts
    • cause

      private final Throwable cause
      Separate cause field, in case initCause() fails.
  • Constructor Details

    • AssertionErrorWithFacts

      private AssertionErrorWithFacts(com.google.common.collect.ImmutableList<String> messages, com.google.common.collect.ImmutableList<Fact> facts, Throwable cause)
  • Method Details