org.jboss.errai.enterprise.client.jaxrs
Class AbstractJSONClientExceptionMapper
java.lang.Object
org.jboss.errai.enterprise.client.jaxrs.AbstractJSONClientExceptionMapper
- All Implemented Interfaces:
- ClientExceptionMapper
- Direct Known Subclasses:
- SecurityExceptionMapper
public abstract class AbstractJSONClientExceptionMapper
- extends Object
- implements ClientExceptionMapper
A simple base class for exception mappers that expect a JSON payload
when unmarshalling errors.
- Author:
- eric.wittmann@redhat.com
Method Summary |
protected
|
fromJSON(com.google.gwt.http.client.Response response,
Class<T> type)
Call this method to unmarshal the REST error response to a Bean of a
particular type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractJSONClientExceptionMapper
public AbstractJSONClientExceptionMapper()
- Constructor.
fromJSON
protected <T> T fromJSON(com.google.gwt.http.client.Response response,
Class<T> type)
- Call this method to unmarshal the REST error response to a Bean of a
particular type.
- Parameters:
response
- type
-
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.