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.AssertionErrorAnAssertionErrorthat (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.ThrowablecauseSeparate cause field, in case initCause() fails.
-
Constructor Summary
Constructors Modifier Constructor Description privateSimpleAssertionError(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.SimpleAssertionErrorcreate(java.lang.String message, java.lang.Throwable cause)(package private) static Truth.SimpleAssertionErrorcreateWithNoStack(java.lang.String message)(package private) static Truth.SimpleAssertionErrorcreateWithNoStack(java.lang.String message, java.lang.Throwable cause)java.lang.ThrowablegetCause()java.lang.StringtoString()
-
-
-
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:
getCausein classjava.lang.Throwable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Throwable
-
-