method UnexpectedError.prototype.toSerializable
UnexpectedError.prototype.toSerializable(): UnexpectedErrorData

Serializes error to a plain object.

Return Type

Plain object representation of the error

Usage

import { UnexpectedError } from "result/mod.ts";