add error message for ResourceAllocationException in DeployVMCmd.java

(cherry picked from commit e74d8a1d14)
This commit is contained in:
Wei Zhou 2013-09-11 10:06:03 +02:00
parent 58d1e6fd5b
commit a7c91fea67
1 changed files with 3 additions and 0 deletions

View File

@ -528,6 +528,9 @@ public class DeployVMCmd extends BaseAsyncCreateCmd {
} catch (ConcurrentOperationException ex) {
s_logger.warn("Exception: ", ex);
throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, ex.getMessage());
} catch (ResourceAllocationException ex) {
s_logger.warn("Exception: ", ex);
throw new ServerApiException(ApiErrorCode.RESOURCE_ALLOCATION_ERROR, ex.getMessage());
}
}