Interface ExceptionMapper<E extends Throwable>


public interface ExceptionMapper<E extends Throwable>
Contract for a provider that maps Java exceptions to Response. An implementation of this interface must be annotated with Provider.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    toResponse(E exception)
    Map an exception to a Response.