aboutsummaryrefslogtreecommitdiff
path: root/plugin/evm/error.go
blob: d65d28bac3f7c2046e22da3bf5c35b184f3ce688 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// (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 permanent 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 }