- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<Throwable>, org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware
@Scope(value="singleton")
@Provider
public class BroadleafRestExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<Throwable>, org.springframework.context.MessageSourceAware
This is a generic JAX-RS ExceptionMapper. This can be registered as a Spring Bean to catch exceptions, log them,
and return reasonable responses to the client. Alternatively, you can extend this or implement your own, more granular, mapper(s).
This class does not return internationalized messages. But for convenience, this class provides a protected
Spring MessageSource to allow for internationalization if one chose to go that route.
- Author:
- Kelly Tisdell