method BaseError.prototype.getTraceId
BaseError.prototype.getTraceId(): string | undefined

Get the trace ID for this error. Returns the trace ID captured at error creation time.

Return Type

string | undefined

The trace ID string or undefined

Usage

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