public final class Throwables extends Object
| Modifier and Type | Method and Description |
|---|---|
static RuntimeException |
failure(Throwable t)
Used to help perform common throw-up with minimal wrapping.
|
static RuntimeException |
failure(Throwable t,
String errmsg)
Same as
failure(Throwable), but the given errmsg will be used if
it was wrapped as either an SdkClientException or
AbortedException. |
static Throwable |
getRootCause(Throwable orig)
Returns the root cause of the given throwable, or null if the given
throwable is null.
|
public static Throwable getRootCause(Throwable orig)
public static RuntimeException failure(Throwable t)
public static RuntimeException failure(Throwable t, String errmsg)
failure(Throwable), but the given errmsg will be used if
it was wrapped as either an SdkClientException or
AbortedException.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.