Class RestExceptionResolver

java.lang.Object
org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
de.hybris.platform.webservicescommons.resolver.AbstractRestHandlerExceptionResolver
de.hybris.platform.webservicescommons.resolver.RestExceptionResolver
All Implemented Interfaces:
org.springframework.core.Ordered, org.springframework.web.servlet.HandlerExceptionResolver

public class RestExceptionResolver extends AbstractRestHandlerExceptionResolver
Exception resolver implementation for RESTful Web services. Resolver sets error status and message in the response, that can be customized based on configuration.

Class internally uses FallbackConfigurationHelper to get configuration values. Configuration is defined on 3 levels: specified extension, webservicescommons or default.

In first place configuration is taken from specified extension. In second place configuration is taken from webservicescommons (if extension configuration is not defined).

If configuration is not defined then exception stacktrace is logged and default value of status and error message is set.