JavaScript is disabled on your browser.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method
javax.ws.rs.ext

Interface ExceptionMapper<E extends Throwable>

  • Type Parameters:
    E - exception type supported by the provider.


    public interface ExceptionMapper<E extends Throwable>
    Contract for a provider that maps Java exceptions to Response.

    Providers implementing ExceptionMapper contract must be either programmatically registered in a JAX-RS runtime or must be annotated with @Provider annotation to be automatically discovered by the JAX-RS runtime during a provider scanning phase.

    Since:
    1.0
    Author:
    Paul Sandoz, Marc Hadley
    See Also:
    Provider, Response
    • Method Summary

      All Methods
      Modifier and Type Method and Description
      Response toResponse (E exception)
      Map an exception to a Response.
Skip navigation links
  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Copyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.

AltStyle によって変換されたページ (->オリジナル) /