|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
Provider,
Response| Method Summary | |
|---|---|
Response |
toResponse(E exception)
Map an exception to a Response. |
| Method Detail |
|---|
Response toResponse(E exception)
Response. Returning
null results in a Response.Status.NO_CONTENT
response. Throwing a runtime exception results in a
Response.Status.INTERNAL_SERVER_ERROR response
exception - the exception to map to a response
|
DRAFT | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2009 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.
Generated on 24-November-2009 03:24