PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@bitgo/sdk-coin-hbar/node_modules/@hashgraph/sdk/lib/grpc
Просмотр файла: GrpcServiceError.d.ts
/**
* Describes how the gRPC request failed.
*
* Exists in order for the Hedera JavaScript SDK to produce the same error type for gRPC errors regardless of
* operating in node or the browser.
*
* Definition taken from <https://grpc.github.io/grpc/node/grpc.html#~ServiceError>.
*/
export default class GrpcServiceError extends Error {
/**
* @param {Error & { code?: number; details?: string }} obj
* @returns {Error}
*/
static _fromResponse(obj: Error & {
code?: number;
details?: string;
}): Error;
/**
* @param {GrpcStatus} status
*/
constructor(status: GrpcStatus);
/**
* @readonly
*/
readonly status: GrpcStatus;
}
import GrpcStatus from "./GrpcStatus.js";
Выполнить команду
Для локальной разработки. Не используйте в интернете!