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 Exception
s.
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
fromResponse
Throwable fromResponse(com.google.gwt.http.client.Response response)
- Converts the REST HTTP
Response
to an Exception
.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.