Class IvyExceptionMapper
- java.lang.Object
-
- ch.ivyteam.ivy.webserver.rest.exception.IvyExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Throwable>
@Provider @Priority(1) public class IvyExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<Throwable>
Handles anyThrowable
that occurs during REST invocations and returns the error as simple JSON.Custom
Warning:ExceptionMapper
s can be registered by settings theProvider
annotation on a class of any Axon.ivy project and implement the handler there. These implementations can either provide advanced responses for more specificException
s or override this default implementation by setting a higherPriority
than 1.Provider
annotated extensions are always global and in charge for the full REST stack of the Engine. So you might face unexpected runtime behaviour if multiple apps/projects/processModelVersions provide a valid jax.rs.extension.Provider.- Since:
- 6.1
- API:
- This is a public API.