aboutsummaryrefslogblamecommitdiff
path: root/plugin/evm/error.go
blob: 055434931595fd8bbe55fda1603b05f7071c85e4 (plain) (tree)


















                                                                              
// (c) 2019-2020, Ava Labs, Inc. All rights reserved.
// See the file LICENSE for licensing terms.

package evm

// TxError provides the ability for errors to be distinguished as permenant or
// temporary
type TxError interface {
	error
	Temporary() bool
}

type tempError struct{ error }

func (tempError) Temporary() bool { return true }

type permError struct{ error }

func (permError) Temporary() bool { return false }