> +import javax.inject.Singleton;
> +
> +import org.jclouds.http.HttpCommand;
> +import org.jclouds.http.HttpErrorHandler;
> +import org.jclouds.http.HttpResponse;
> +import org.jclouds.http.HttpResponseException;
> +import org.jclouds.rest.AuthorizationException;
> +import org.jclouds.rest.ResourceNotFoundException;
> +
> +/**
> + * This will parse and set an appropriate exception on the command object.
> + * 
> + * @author Ignacio Mulas
> + * 
> + */
> +// TODO: is there error spec someplace? let's type errors, etc.

There is no error spec :( But 
[these](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/util/Throwables2.java#L138-L141)
 are the top level exceptions jclouds takes into account. Error handlers should 
try to map responses to these Exceptions, and throw an `HttpResponseException` 
if no one is appropriate.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/77/files#r9095065

Reply via email to