Home > @rushstack/node-core-library > LegacyAdapters > scrubError
LegacyAdapters.scrubError() method
Normalizes an object into an Error
object.
Signature:
static scrubError(error: Error | string | any): Error;
Parameters
Parameter | Type | Description |
---|---|---|
error | Error | string | any |
Returns:
Error