public abstract class AbstractExceptionFactory<E extends Exception> extends Object implements ExceptionFactory<E>
Modifier | Constructor and Description |
---|---|
protected |
AbstractExceptionFactory(Class<E> targetClass) |
Modifier and Type | Method and Description |
---|---|
boolean |
correctHeuristic(E exception,
Durability.Phase phase) |
E |
createException(Throwable e) |
boolean |
equals(E exception1,
E exception2) |
Class<E> |
getTargetClass() |
ExceptionType |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createException, indicatesFailure
protected AbstractExceptionFactory(Class<E> targetClass)
public Class<E> getTargetClass()
getTargetClass
in interface ExceptionFactory<E extends Exception>
public ExceptionType getType()
getType
in interface ExceptionFactory<E extends Exception>
public E createException(Throwable e)
createException
in interface ExceptionFactory<E extends Exception>
ExceptionFactory.createException(java.lang.Throwable)
public boolean correctHeuristic(E exception, Durability.Phase phase)
correctHeuristic
in interface ExceptionFactory<E extends Exception>
Copyright © 2004–2014 Paul Ferraro. All rights reserved.