Extracts the enumerable properties from an Error object and returns them in a new object.
The Error object.
Extracts the enumerable properties from an Error object and returns them in a new object.