Interface SerializedException

Consider adding optional metadata object to exceptions (if language doesn't support anything similar by default) and pass some useful technical information about the exception when throwing.

interface SerializedException {
    message: string;
    metadata?: unknown;
    stack?: string;
}

Properties

message: string
metadata?: unknown
stack?: string