Skip navigation links
A B C D E F G H I M O R S U 

A

Action - Interface in com.workable.errorhandler
A functional interface representing an action that gets executed upon an error by an ErrorHandler.
action - Variable in class com.workable.errorhandler.ActionEntry
 
ActionEntry - Class in com.workable.errorhandler
Container to ease passing around a tuple of two objects.
ActionEntry(Matcher, Action) - Constructor for class com.workable.errorhandler.ActionEntry
Constructor for an ActionEntry.
always(Action) - Method in class com.workable.errorhandler.ErrorHandler
Register action to be executed on all errors.

B

bind(T, MatcherFactory<? super T>) - Method in class com.workable.errorhandler.ErrorHandler
Bind an errorCode to a Matcher, using a MatcherFactory.
bindClass(Class<T>, MatcherFactory<? super T>) - Method in class com.workable.errorhandler.ErrorHandler
Bind an errorCode Class to a Matcher, using a MatcherFactory.
BlockExecutor - Interface in com.workable.errorhandler
Functional interface to run code blocks
build(T) - Method in interface com.workable.errorhandler.MatcherFactory
Build a Matcher to match the given error code against an error

C

clear() - Method in class com.workable.errorhandler.ErrorHandler
Clear ErrorHandler instance from all its registered Actions and Matchers.
com.workable.errorhandler - package com.workable.errorhandler
 
create() - Static method in class com.workable.errorhandler.ErrorHandler
Create a new @{link ErrorHandler}, that delegates to the default one.
createIsolated() - Static method in class com.workable.errorhandler.ErrorHandler
Create a new @{link ErrorHandler}, isolated from the default one.

D

defaultErrorHandler() - Static method in class com.workable.errorhandler.ErrorHandler
Get the default @{link ErrorHandler}, a singleton object to which all other instances by default delegate to.

E

equals(Object) - Method in class com.workable.errorhandler.ActionEntry
 
ErrorHandler - Class in com.workable.errorhandler
An ErrorHandler is responsible for handling an error by executing one or more actions, instances of Action, that are found to match the error.
ExceptionMatcher - Class in com.workable.errorhandler
 
ExceptionMatcher(Class<? extends Exception>) - Constructor for class com.workable.errorhandler.ExceptionMatcher
 
execute(Throwable, ErrorHandler) - Method in interface com.workable.errorhandler.Action
 

F

from(Matcher, Action) - Static method in class com.workable.errorhandler.ActionEntry
Convenience method for creating an ActionEntry

G

getErrorCode() - Method in exception com.workable.errorhandler.UnknownErrorCodeException
 
getMatcherFactoryForErrorCode(T) - Method in class com.workable.errorhandler.ErrorHandler
 

H

handle(Throwable, ThreadLocal<ErrorHandler.Context>) - Method in class com.workable.errorhandler.ErrorHandler
 
handle(Throwable) - Method in class com.workable.errorhandler.ErrorHandler
Handle error by executing all matching actions.
hashCode() - Method in class com.workable.errorhandler.ActionEntry
Compute a hash code using the hash codes of the underlying objects

I

invoke() - Method in interface com.workable.errorhandler.BlockExecutor
 

M

matcher - Variable in class com.workable.errorhandler.ActionEntry
 
Matcher - Interface in com.workable.errorhandler
 
MatcherFactory<T> - Interface in com.workable.errorhandler
A functional interface for Matcher factories
matches(Throwable) - Method in class com.workable.errorhandler.ExceptionMatcher
 
matches(Throwable) - Method in interface com.workable.errorhandler.Matcher
 

O

on(Matcher, Action) - Method in class com.workable.errorhandler.ErrorHandler
Register action to be executed by ErrorHandler.handle(Throwable), if the thrown error matches the matcher.
on(Class<? extends Exception>, Action) - Method in class com.workable.errorhandler.ErrorHandler
Register action to be executed by ErrorHandler.handle(Throwable), if the thrown error is an instance of exceptionClass.
on(T, Action) - Method in class com.workable.errorhandler.ErrorHandler
Register action to be executed by ErrorHandler.handle(Throwable), if the thrown error is bound (associated) to errorCode.
otherwise(Action) - Method in class com.workable.errorhandler.ErrorHandler
Register action to be executed in case no other conditional action gets executed.

R

run(BlockExecutor) - Method in class com.workable.errorhandler.ErrorHandler
Run a custom code block and assign current ErrorHandler instance to handle a possible exception throw in 'catch'.

S

skipAlways() - Method in class com.workable.errorhandler.ErrorHandler
Skip all actions registered via ErrorHandler.always(Action)
skipDefaults() - Method in class com.workable.errorhandler.ErrorHandler
Skip the default matching actions if any
skipFollowing() - Method in class com.workable.errorhandler.ErrorHandler
Skip all following actions registered via an on method

U

UnknownErrorCodeException - Exception in com.workable.errorhandler
Runtime exception to indicate that the user tried to register an Action via ErrorHandler.on(Object, Action) with an unknown error code.
UnknownErrorCodeException(Object) - Constructor for exception com.workable.errorhandler.UnknownErrorCodeException
 
A B C D E F G H I M O R S U 
Skip navigation links