fabric: github.com/hyperledger/fabric/common/errors Index | Files

package errors

import "github.com/hyperledger/fabric/common/errors"

Index

Package Files

errors.go

type TxValidationError Uses

type TxValidationError interface {
    error
    IsValid() bool
}

TxValidationError marks that the error is related to validation of a transaction

type VSCCEndorsementPolicyError Uses

type VSCCEndorsementPolicyError struct {
    Err error
}

VSCCEndorsementPolicyError error to mark transaction failed endorsement policy check

func (VSCCEndorsementPolicyError) Error Uses

func (e VSCCEndorsementPolicyError) Error() string

Error returns reasons which lead to the failure

func (*VSCCEndorsementPolicyError) IsValid Uses

func (e *VSCCEndorsementPolicyError) IsValid() bool

type VSCCExecutionFailureError Uses

type VSCCExecutionFailureError struct {
    Err error
}

VSCCExecutionFailureError error to indicate failure during attempt of executing VSCC endorsement policy check

func (VSCCExecutionFailureError) Error Uses

func (e VSCCExecutionFailureError) Error() string

Error returns reasons which lead to the failure

func (*VSCCExecutionFailureError) IsValid Uses

func (e *VSCCExecutionFailureError) IsValid() bool

type VSCCInfoLookupFailureError Uses

type VSCCInfoLookupFailureError struct {
    Reason string
}

VSCCInfoLookupFailureError error to indicate inability to obtain VSCC information from LCCC

func (VSCCInfoLookupFailureError) Error Uses

func (e VSCCInfoLookupFailureError) Error() string

Error returns reasons which lead to the failure

Package errors is imported by 20 packages. Updated 2018-07-10. Refresh now. Tools for package owners.