E- exception type supported by the provider.
public interface ExceptionMapper<E extends Throwable>
ExceptionMapper contract must be either programmatically
registered in an API runtime or must be annotated with
@Provider annotation to be automatically discovered
by the runtime during a provider scanning phase.
nullresults in a
Response.Status.NO_CONTENTresponse. Throwing a runtime exception results in a
exception- the exception to map to a response.
Copyright © 2021 JBoss by Red Hat. All rights reserved.