diff options
author | Determinant <[email protected]> | 2020-08-13 21:11:56 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-08-13 21:11:56 -0400 |
commit | 88cc3698b3663972cd9b60faf5c14a7e1bbee965 (patch) | |
tree | aafa80495750987f144607bd4b71154a365e7a3b /plugin/evm/error.go | |
parent | 1bb314f767785fe617c3c5efeca1a64127339506 (diff) |
WIP: X-to-C transfer
Diffstat (limited to 'plugin/evm/error.go')
-rw-r--r-- | plugin/evm/error.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugin/evm/error.go b/plugin/evm/error.go new file mode 100644 index 0000000..0554349 --- /dev/null +++ b/plugin/evm/error.go @@ -0,0 +1,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 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 } |