public enum Exceptions extends java.lang.Enum<Exceptions>
| Modifier and Type | Method and Description |
|---|---|
static java.lang.RuntimeException |
propagate(java.lang.Throwable t)
Convenience method to throw a
RuntimeException and Error directly
or wrap any other exception type into a RuntimeException. |
static Exceptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Exceptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Exceptions[] values()
for (Exceptions c : Exceptions.values()) System.out.println(c);
public static Exceptions 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.RuntimeException propagate(java.lang.Throwable t)
RuntimeException and Error directly
or wrap any other exception type into a RuntimeException.t - the exception to throw directly or wrappedpropagate itself throws an exception or error, this is a sort of phantom return
value; propagate does not actually return anything