if (response.isSuccess()) {
return response;
}
- throw new CatalogResourceException(response.getException());
- } catch (Exception e1) {
+ throw new CatalogResourceException(response.toString());
+ } catch (Exception e) {
throw new CatalogResourceException(
- "Call Delete Package api failed. packageName = " + packageName, e1);
+ "Call Delete Package api failed. packageName = " + packageName, e);
}
}
if (response.isSuccess()) {
return response;
}
- throw new CatalogResourceException(response.getException());
- } catch (Exception e1) {
- throw new CatalogResourceException("Call Start Process api failed.", e1);
+ throw new CatalogResourceException(response.toString());
+ } catch (Exception e) {
+ throw new CatalogResourceException("Call Start Process api failed.", e);
}
}
public boolean isSuccess() {
return this.status == STATUS_SUCCESS;
}
+
+ @Override
+ public String toString() {
+ return "DeployPackageResponse [status=" + status + ", message=" + message + ", packageName="
+ + packageName + ", processId=" + processId + ", exception=" + exception + "]";
+ }
+
}
public boolean isSuccess() {
return this.status == STATUS_SUCCESS;
}
+
+ @Override
+ public String toString() {
+ return "StartProcessResponse [status=" + status + ", message=" + message + ", response="
+ + response + ", exception=" + exception + "]";
+ }
}