...

Package errors

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

Overview ▾

type TxValidationError

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

type TxValidationError interface {
    error
    IsValid() bool
}

type VSCCEndorsementPolicyError

VSCCEndorsementPolicyError error to mark transaction failed endorsement policy check

type VSCCEndorsementPolicyError struct {
    Err error
}

func (VSCCEndorsementPolicyError) Error

func (e VSCCEndorsementPolicyError) Error() string

Error returns reasons which lead to the failure

func (*VSCCEndorsementPolicyError) IsValid

func (e *VSCCEndorsementPolicyError) IsValid() bool

type VSCCExecutionFailureError

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

type VSCCExecutionFailureError struct {
    Err error
}

func (VSCCExecutionFailureError) Error

func (e VSCCExecutionFailureError) Error() string

Error returns reasons which lead to the failure

func (*VSCCExecutionFailureError) IsValid

func (e *VSCCExecutionFailureError) IsValid() bool

type VSCCInfoLookupFailureError

VSCCInfoLookupFailureError error to indicate inability to obtain VSCC information from LCCC

type VSCCInfoLookupFailureError struct {
    Reason string
}

func (VSCCInfoLookupFailureError) Error

func (e VSCCInfoLookupFailureError) Error() string

Error returns reasons which lead to the failure