public enum Throwables extends Enum<Throwables>
Modifier and Type | Method and Description |
---|---|
static Throwable |
getRootCause(Throwable orig)
Returns the root cause of the given throwable, or null if the given
throwable is null.
|
static Throwables |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Throwable getRootCause(Throwable orig)
Copyright © 2016. All rights reserved.