> @@ -64,6 +65,8 @@ public void handleError(HttpCommand command, HttpResponse > response) { > exception = new ResourceNotFoundException(message, > exception); > } else if (message.indexOf("currently an active > transaction") != -1) { > exception = new IllegalStateException(message, > exception); > + } else if > (message.indexOf("SoftLayer_Exception_Order_Item_Duplicate") != -1) { > + exception = new > SoftLayerOrderItemDuplicateException(command.getCurrentRequest(), message);
+1 - if the exception is only used to recognize a certain failure state, it doesn't need any more heavyweight information than that. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/199/files#r7587281