Skip to content

Improve Error Handling and Logging #432

@almightyrush

Description

@almightyrush

Description

Improve the error messages and notification to make it more readable and understandable.

Problem:

The existing error messages shows the complete JSON object in case of CMCI error response and the internal extension related errors are not handled and it too shows weird messages like Error: getaddrinfo ENOTFOUND winmvs28.hursley.ibm.com .

Preferred Solution:

  1. List out all the possible error and exception might occur or occurring in the extension
  2. Categorise the errors and exceptions to 2 different set i.e.
    • Extension or base errors|exception: Exception getting thrown from the extension
    • API errors|exception: Exception or errors response from the CMCI REST call.
  3. Convert the possible error messages in the meaningful readable statements.
  4. Refactor the code to add try catch block and handle the exceptions

Sub-issues

Metadata

Metadata

Assignees

Labels

Projects

Status

Epics

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions