@hyperledger/fabric-gateway
    Preparing search index...

    Class GatewayError

    A GatewayError is thrown if an error is encountered while processing a transaction through the gateway. Since the gateway delegates much of the processing to other nodes (endorsing peers and orderers), then the error could have originated from one or more of those nodes. In that case, the details field will contain an array of ErrorDetail objects.

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • properties: Readonly<
            {
                cause: ServiceError;
                code: number;
                details: ErrorDetail[];
                message?: string;
            },
        >

      Returns GatewayError

    Properties

    cause: ServiceError

    Raw underlying gRPC ServiceError.

    code: number

    gRPC status code.

    https://grpc.io/docs/guides/status-codes/ for descriptions of status codes.

    details: ErrorDetail[]

    gRPC error details.

    message: string
    name: string
    stack?: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void