fabric-network
Version:
SDK for writing node.js applications to interact with Hyperledger Fabric. This package encapsulates the APIs to connect to a Fabric network, submit transactions and perform queries against the ledger.
22 lines (21 loc) • 663 B
TypeScript
/**
* Copyright 2020 IBM All Rights Reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
import { FabricError } from './fabricerror';
export interface TransactionErrorInfo {
message: string;
transactionId: string;
transactionCode: string;
}
/**
* Base type for Fabric-specific errors.
* @memberof module:fabric-network
* @property {string} [transactionId] ID of the associated transaction.
* @property {string} [transactionCode] The transaction validation code of the associated transaction.
*/
export declare class TransactionError extends FabricError {
transactionCode?: string;
constructor(info?: string | TransactionErrorInfo);
}