Example usage for Java com.google.common.base Throwables fields, constructors, methods, implement or subclass
The text is from its open source code.
List | getCausalChain(Throwable throwable) Gets a Throwable cause chain as a list. |
Throwable | getRootCause(Throwable throwable) Returns the innermost cause of throwable . |
String | getStackTraceAsString(Throwable throwable) Returns a string containing the result of Throwable#toString() toString() , followed by the full, recursive stack trace of throwable . |
RuntimeException | propagate(Throwable throwable) Propagates throwable as-is if it is an instance of RuntimeException or Error , or else as a last resort, wraps it in a RuntimeException and then propagates. |
void | propagateIfInstanceOf(@Nullable Throwable throwable, Class Propagates throwable exactly as-is, if and only if it is an instance of declaredType . |
void | propagateIfPossible(@Nullable Throwable throwable, Class Propagates throwable exactly as-is, if and only if it is an instance of RuntimeException , Error , or declaredType . |
void | propagateIfPossible(@Nullable Throwable throwable) Propagates throwable exactly as-is, if and only if it is an instance of RuntimeException or Error . |
void | propagateIfPossible( @Nullable Throwable throwable, Class Propagates throwable exactly as-is, if and only if it is an instance of RuntimeException , Error , declaredType1 , or declaredType2 . |