Errai 3.0.1-SNAPSHOT

org.jboss.errai.enterprise.client.jaxrs
Interface ClientExceptionMapper

All Known Implementing Classes:
AbstractJSONClientExceptionMapper, SecurityExceptionMapper

public interface ClientExceptionMapper

All client-side REST exception mappers must implement this interface. It provides a way for the developer to have fine-grained control of mapping REST Response objects to specific types of Exceptions. Typically an implementation would use the response code and payload to determine the type of error and create a new instance of an exception based on that information.

Author:
eric.wittmann@redhat.com

Method Summary
 Throwable fromResponse(com.google.gwt.http.client.Response response)
          Converts the REST HTTP Response to an Exception.
 

Method Detail

fromResponse

Throwable fromResponse(com.google.gwt.http.client.Response response)
Converts the REST HTTP Response to an Exception.


Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.