public class ImmutableExceptionHandler extends BaseExceptionHandler implements ExceptionHandler
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
exceptionType |
protected int |
handlerCodeAddress |
BY_EXCEPTION| Constructor and Description |
|---|
ImmutableExceptionHandler(java.lang.String exceptionType,
int handlerCodeAddress) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getExceptionType()
Gets the type of exception that is handled by this handler.
|
int |
getHandlerCodeAddress()
Gets the code offset of the handler.
|
static com.google.common.collect.ImmutableList<ImmutableExceptionHandler> |
immutableListOf(java.lang.Iterable<? extends ExceptionHandler> list) |
static ImmutableExceptionHandler |
of(ExceptionHandler exceptionHandler) |
compareTo, equals, getExceptionTypeReference, hashCodeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitcompareTo, equals, getExceptionTypeReference, hashCode@Nullable protected final java.lang.String exceptionType
protected final int handlerCodeAddress
public ImmutableExceptionHandler(@Nullable
java.lang.String exceptionType,
int handlerCodeAddress)
public static ImmutableExceptionHandler of(ExceptionHandler exceptionHandler)
@Nullable public java.lang.String getExceptionType()
ExceptionHandlergetExceptionType in interface ExceptionHandlerpublic int getHandlerCodeAddress()
ExceptionHandlergetHandlerCodeAddress in interface ExceptionHandler@Nonnull public static com.google.common.collect.ImmutableList<ImmutableExceptionHandler> immutableListOf(@Nullable java.lang.Iterable<? extends ExceptionHandler> list)