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 any
Throwable
that occurs during REST invocations and returns the error as simple JSON.
Custom ExceptionMapper
s can be registered by settings the Provider
annotation
on a class of any Axon Ivy project and implement the handler there.
These implementations can either provide advanced responses for more specific Exception
s
or override this default implementation by setting a higher Priority
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.