serializeError()
Home > @backstage/errors
> serializeError
Serializes an error object to a JSON friendly form.
Signature:
function serializeError(error: Error, options?: {
includeStack?: boolean;
}): SerializedError;
Parameters
Parameter |
Type |
Description |
---|---|---|
error |
Error |
The error. |
options |
{ includeStack?: boolean; } |
(Optional) Optional serialization options. |