Questions tagged [exceptionmapper]

JAX-RS contract for a provider that maps Java exceptions to Response.

From Javadoc

public interface ExceptionMapper<E extends Throwable>

Contract for a provider that maps Java exceptions to Response.

Providers implementing ExceptionMapper contract must be either programmatically registered in a JAX-RS runtime or must be annotated with @Provider annotation to be automatically discovered by the JAX-RS runtime during a provider scanning phase.

46 questions
0
votes
0 answers

JAX-RS ExceptionMapper does not work for any Exception other than java.lang.Exception

I am using spring boot along with JAX-RS and Jersey. I have defined different kinds of ExceptionMappers for different types of Exceptions and one ExceptionMapper as the Fallback mapper just to log the exception properly and send back the correct…
LAC
  • 852
  • 4
  • 11
  • 31
1 2 3
4