UNPKG

bsp-network

Version:

SDK for writing node.js applications to interact with bsp network. This package encapsulates the APIs to connect to a bsp network, submit transactions and perform queries against the ledger.

22 lines (21 loc) 573 B
/** * Copyright 2018 IBM All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ export interface FabricErrorInfo { message?: string; cause?: Error; transactionId?: string; } /** * Base type for Fabric-specific errors. * @memberof module:fabric-network * @property {Error} [cause] Underlying error that caused this error. * @property {string} [transactionId] ID of the associated transaction. */ export declare class FabricError extends Error { cause?: Error; transactionId?: string; constructor(info?: string | FabricErrorInfo); }