Construct the error referencing a specific cause error.
The error that caused the load failure.
Return additionalDetails
Return causeErrors
Return IImperativeError object
Return errorCode
Accessor for the error message.
: The error message
Return stack info
Return whether or not the error dump should be suppressed
Within the Zowe client SDK, errors are often thrown, caught, modified, and re-thrown. Sometimes the error that we catch is a standard JavaScript Error. Other times the error is already an ImperativeError (which can contain more details). A hard-coded reliance on ImperativeError properties like causeErrors and additionalDetails will not work if the existingErr is a standard JavaScript Error. Also, the properties of an ImperativeError can be nested under various properties within its causeErrors property.
The purpose of this utility function is to interrogate the existing error to form the most meaningful ImperativeError possible.
An existing error to be incorporated into the resulting ImperativeError.
The main message text for the resulting ImperativeError. If not supplied,
the existingErr.message value will be used.
A newly created ImperativeError
Generated using TypeDoc
This class represents the error thrown by methods of the InvalidCredentialManager when initialized by CredentialManagerFactory.initialize