• Takes an error-like object as a parameter and returns the same object without request and response properties, which usually contain an overwhelming amount of data. Useful when error objects are logged as is to prevent reaching the log length limit.

    Important: the change is done on an original object reference, which is returned. There is no cloning done to prevent changes to original instance.

    Additional properties that are added based on request/response properties (if corresponding properties exist): requestUrl, responseError, responseStatus.

    Supports http errors thrown by following packages: superagent, axios, @azure/storage-blob

    Parameters

    • error: Object

    Returns Error | ErrorObject

Generated using TypeDoc