PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@near-js/utils/lib/esm/errors

Просмотр файла: rpc_errors.d.ts

import { TypedError } from '@near-js/types';

declare class ServerError extends TypedError {
}
declare class ServerTransactionError extends ServerError {
    transaction_outcome: any;
}
declare function parseRpcError(errorObj: Record<string, any>): ServerError;
declare function parseResultError(result: any): ServerTransactionError;
declare function formatError(errorClassName: string, errorData: any): string;
declare function getErrorTypeFromErrorMessage(errorMessage: any, errorType: any): any;

export { ServerError, formatError, getErrorTypeFromErrorMessage, parseResultError, parseRpcError };

Выполнить команду


Для локальной разработки. Не используйте в интернете!