github.com/datachainlab/burrow@v0.25.0/execution/errors/native.go (about)

     1  package errors
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"github.com/hyperledger/burrow/crypto"
     7  )
     8  
     9  type LacksSNativePermission struct {
    10  	Address crypto.Address
    11  	SNative string
    12  }
    13  
    14  func (e LacksSNativePermission) Error() string {
    15  	return fmt.Sprintf("account %s does not have SNative function call permission: %s", e.Address, e.SNative)
    16  }
    17  
    18  func (e LacksSNativePermission) ErrorCode() Code {
    19  	return ErrorCodeNativeFunction
    20  }