Home / Type/ ModelError Type — typescript-sdk Architecture

ModelError Type — typescript-sdk Architecture

Architecture documentation for the ModelError type/interface in ModelError.ts from the typescript-sdk codebase.

Entity Profile

Source Code

src/models/ModelError.ts lines 28–65

export interface ModelError {
    /**
     * HTTP status code associated with the error.
     * @type {number}
     * @memberof ModelError
     */
    status: number;
    /**
     * Stable, machine-readable error identifier.
     * @type {string}
     * @memberof ModelError
     */
    code: string;
    /**
     * Human-readable description of the error.
     * @type {string}
     * @memberof ModelError
     */
    message: string;
    /**
     * ISO-8601 timestamp indicating when the error occurred.
     * @type {Date}
     * @memberof ModelError
     */
    timestamp: Date;
    /**
     * Correlation identifier for tracing the failing request.
     * @type {string}
     * @memberof ModelError
     */
    requestId?: string;
    /**
     * Optional list of contextual error details.
     * @type {Array<ErrorDetailsInner>}
     * @memberof ModelError
     */
    details?: Array<ErrorDetailsInner>;
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free