mirror of https://github.com/apache/cloudstack.git
Description: 1) Put in an IdentityProxy object in the ExceptionResponse class. This allows us to copy over the IdentityProxy object contained in the exception caught by handlerequest() when thrown by the command's execute() method, into the Response object that is prepared to return an exception response to the calling API invocation. 2) Modified the GSON serialization method to conver the entire exception object into JSON format and not just the error text. 3) Modify the updateDomain API to populate the exception it throws upon detecting a duplicate domain to include the tablename and domain db id in the exception's IdentityProxy object. NOTE: 1) We can modify the base exception classes and the ExceptionResponse class to contain a list of IdentityProxy objects rather than a single one. 2) We will need to modify all commands such that wherever applicable (wherever a db id is involved), they populate the IdentityProxy object(s) before throwing an exception. |
||
|---|---|---|
| .. | ||
| src/com/cloud | ||
| .classpath | ||
| .project | ||