@yandex-cloud/nodejs-sdk
Version:
Yandex.Cloud NodeJS SDK
18 lines (17 loc) • 727 B
TypeScript
import { Metadata } from 'nice-grpc';
export declare class ApiError extends Error {
metadata: Metadata;
constructor(error: Error, metadata: Metadata);
/**
* Getter for the request ID from the metadata.
* Will provide additional information in case of opening a support ticket.
* @returns {string | undefined} The request ID if it exists, undefined otherwise.
*/
get requestId(): string | undefined;
/**
* Getter for the server trace ID from the metadata.
* Will provide additional information in case of opening a support ticket.
* @returns {string | undefined} The server trace ID if it exists, undefined otherwise.
*/
get serverTraceId(): string | undefined;
}