IT. Expert System.

Java Enterprise Edition (EE)

ExceptionMapper


javax.ws.rs.ext
Interface ExceptionMapper<E extends java.lang.Throwable>

public interface ExceptionMapper<E extends java.lang.Throwable>

Contract for a provider that maps Java exceptions to Response. An implementation of this interface must be annotated with Provider.

See Also:
Provider, Response

Method Summary
 Response toResponse(E exception)
          Map an exception to a Response.
 

Method Detail

toResponse

Response toResponse(E exception)
Map an exception to a Response. Returning null results in a Response.Status.NO_CONTENT response. Throwing a runtime exception results in a Response.Status.INTERNAL_SERVER_ERROR response

Parameters:
exception - the exception to map to a response
Returns:
a response mapped from the supplied exception


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 752 / . Delta: 0.00662 с