mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Bug 13127: API error text refer to database ids instead of uuids Code-Reviewers: Ewan Mellor, Kelven Yang Description: 1. A new class CSExceptionErrorCode has been added to utils. It contains a list of error codes for each type of Exception class. Use fully qualified package paths for Exceptions in CSExceptionErrorCode. We log any exception name not found in the list of error codes for exceptions. 2. Whenever we throw an exception exobj anywhere in the CS code, the CSErrorCode is set in the base class constructor. 3. We add a new field csErrorCode in classes CloudException, RuntimeCloudException, ExecutionException and ExceptionResponse. 4. Two places in ApiServer.java were wrongly modified when putting in changes for bug 13127 to not throw an exception. This has been corrected in this commit.