public enum ExceptionType extends Enum<ExceptionType> implements Matcher<ExceptionFactory>
Modifier and Type | Method and Description |
---|---|
<E extends Exception> |
getExceptionFactory() |
boolean |
matches(ExceptionFactory factory) |
static ExceptionType |
valueOf(Class<?> exceptionClass) |
static ExceptionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ExceptionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ExceptionType SQL
public static final ExceptionType XA
public static final ExceptionType IO
public static ExceptionType[] values()
for (ExceptionType c : ExceptionType.values()) System.out.println(c);
public static ExceptionType 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 boolean matches(ExceptionFactory factory)
matches
in interface Matcher<ExceptionFactory>
public <E extends Exception> ExceptionFactory<E> getExceptionFactory()
public static ExceptionType valueOf(Class<?> exceptionClass)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.