add error message for ResourceAllocationException in DeployVMCmd.java

This commit is contained in:
Wei Zhou 2013-09-11 10:06:03 +02:00
parent 17a186557d
commit e74d8a1d14
1 changed files with 3 additions and 0 deletions

View File

@ -527,6 +527,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());
}
}