public enum Throwables extends java.lang.Enum<Throwables>
Modifier and Type | Method and Description |
---|---|
static java.lang.RuntimeException |
failure(java.lang.Throwable t)
Used to help perform common throw-up with minimal wrapping.
|
static java.lang.RuntimeException |
failure(java.lang.Throwable t,
java.lang.String errmsg)
Same as
failure(Throwable) , but the given errmsg will be used if
it was wrapped as either an AmazonClientException or
AbortedException . |
static java.lang.Throwable |
getRootCause(java.lang.Throwable orig)
Returns the root cause of the given throwable, or null if the given
throwable is null.
|
static Throwables |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Throwables[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Throwables[] values()
for (Throwables c : Throwables.values()) System.out.println(c);
public static Throwables valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.Throwable getRootCause(java.lang.Throwable orig)
public static java.lang.RuntimeException failure(java.lang.Throwable t)
public static java.lang.RuntimeException failure(java.lang.Throwable t, java.lang.String errmsg)
failure(Throwable)
, but the given errmsg will be used if
it was wrapped as either an AmazonClientException
or
AbortedException
.