> @@ -16,7 +16,7 @@
>   */
>  package org.jclouds.softlayer.exceptions;
>  
> -public class SoftLayerOrderItemDuplicateException extends RuntimeException {
> +public class SoftLayerOrderItemDuplicateException extends 
> IllegalStateException {

Agree with @demobox.

Could you detail a bit more what exactly is going wrong when your exception 
extends directly from `RuntimeException`? In the end, an 
`IllegalStateException` is also a `RuntimeException`, so it should be 
propagated the same way.

When the target server returns an error code, the [error handlers and retry 
handlers are 
invoked](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/http/internal/BaseHttpCommandExecutorService.java#L149-L154),
 to put the appropriate exception in place. Once the request should not be 
retried again, the [exception is 
propagated](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/http/internal/BaseHttpCommandExecutorService.java#L171).
 This is where the `propagateifInstanceOf` is invoked, but as both exceptions 
are `RuntimeExceptions` there should be no difference.

Could you please details the unexpected behavior you are experiencing?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/204/files#r7652704

Reply via email to