Package com.google.common.truth
Class Truth.SimpleAssertionError
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Error
-
- java.lang.AssertionError
-
- com.google.common.truth.Truth.SimpleAssertionError
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Truth
static final class Truth.SimpleAssertionError extends java.lang.AssertionError
AnAssertionError
that (a) always supports a cause, even under old versions of Android and (b) omits "java.lang.AssertionError:" from the beginning of its toString() representation.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Throwable
cause
Separate cause field, in case initCause() fails.
-
Constructor Summary
Constructors Modifier Constructor Description private
SimpleAssertionError(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static Truth.SimpleAssertionError
create(java.lang.String message, java.lang.Throwable cause)
(package private) static Truth.SimpleAssertionError
createWithNoStack(java.lang.String message)
(package private) static Truth.SimpleAssertionError
createWithNoStack(java.lang.String message, java.lang.Throwable cause)
java.lang.Throwable
getCause()
java.lang.String
toString()
-
-
-
Method Detail
-
create
static Truth.SimpleAssertionError create(java.lang.String message, java.lang.Throwable cause)
-
createWithNoStack
static Truth.SimpleAssertionError createWithNoStack(java.lang.String message, java.lang.Throwable cause)
-
createWithNoStack
static Truth.SimpleAssertionError createWithNoStack(java.lang.String message)
-
getCause
public java.lang.Throwable getCause()
- Overrides:
getCause
in classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Throwable
-
-