public abstract class BaseExceptionHandler extends java.lang.Object implements ExceptionHandler
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<ExceptionHandler> |
BY_EXCEPTION |
| Constructor and Description |
|---|
BaseExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ExceptionHandler o)
Compare this ExceptionHandler to another ExceptionHandler.
|
boolean |
equals(java.lang.Object o)
Compares this ExceptionHandler to another ExceptionHandler for equality.
|
TypeReference |
getExceptionTypeReference()
Gets the type of exception that is handled by this handler.
|
int |
hashCode()
Returns a hashcode for this ExceptionHandler.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetExceptionType, getHandlerCodeAddresspublic static final java.util.Comparator<ExceptionHandler> BY_EXCEPTION
@Nullable public TypeReference getExceptionTypeReference()
ExceptionHandlergetExceptionTypeReference in interface ExceptionHandlerpublic int hashCode()
ExceptionHandler
String exceptionType = getExceptionType();
int hashCode = exceptionType==null?0:exceptionType.hashCode();
return hashCode*31 + getHandlerCodeAddress();
hashCode in interface ExceptionHandlerhashCode in class java.lang.Objectpublic boolean equals(@Nullable
java.lang.Object o)
ExceptionHandlerequals in interface ExceptionHandlerequals in class java.lang.Objecto - The object to be compared for equality with this ExceptionHandlerpublic int compareTo(@Nonnull
ExceptionHandler o)
ExceptionHandlercompareTo in interface java.lang.Comparable<ExceptionHandler>compareTo in interface ExceptionHandlero - The ExceptionHandler to compare with this ExceptionHandler