Some sort of Error or similar
Error message
Omit possibly secret values from stringified object.
Mask a string containing potentially sensitive information.
String to mask
Masked string
Extract an error message from the error object, which may have derived from a request response.
Some sort of Error or similar
Error message if found, undefined
otherwise
Create an Error object from a request response and body. The response and body will be included in the Error object.
Request response and body
Error object with meaningful message, if possible
Generated using TypeDoc
Extract message from a variety of error types. If message is not found in any of the standard places, safely stringify the error.