Package com.mastfrog.acteur.errors
Class ExceptionEvaluator
java.lang.Object
com.mastfrog.acteur.errors.ExceptionEvaluator
- All Implemented Interfaces:
Comparable<ExceptionEvaluator>
@Singleton
public abstract class ExceptionEvaluator
extends Object
implements Comparable<ExceptionEvaluator>
Converts exceptions thrown inside Acteurs into error messages.
Multiple ones can be registered. To register, simply bind your
implementation as an eager singleton in your Guice module.
Note that this class does not suppress logging of exceptions - to do that, implement an ErrorHandler and bind it as an eager singleton. This simply decides how to convert a particular exception into an HTTP response.
- Author:
- Tim Boudreau
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExceptionEvaluator
-
-
Method Details
-
unwind
-
ordinal
protected int ordinal() -
hashCode
public final int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ExceptionEvaluator>
-
evaluate
-