aboutsummaryrefslogtreecommitdiffstats
path: root/core/error.go
diff options
context:
space:
mode:
authorGustav Simonsson <gustav.simonsson@gmail.com>2015-07-04 01:54:14 +0800
committerGustav Simonsson <gustav.simonsson@gmail.com>2015-07-04 15:27:42 +0800
commit0f04af5916cba5234118a442b6100c8122389abf (patch)
tree5941123c1c1ad743d2e4e231481fdb93d005224c /core/error.go
parent9c3db1be1dd24c366a58a7ced22adfa0b0839efe (diff)
downloadgo-tangerine-0f04af5916cba5234118a442b6100c8122389abf.tar
go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.tar.gz
go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.tar.bz2
go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.tar.lz
go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.tar.xz
go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.tar.zst
go-tangerine-0f04af5916cba5234118a442b6100c8122389abf.zip
Fix core error forwarding, unify OOG VM err
Diffstat (limited to 'core/error.go')
-rw-r--r--core/error.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/core/error.go b/core/error.go
index 3f3c350df..fb64d09b2 100644
--- a/core/error.go
+++ b/core/error.go
@@ -30,7 +30,6 @@ func ParentError(hash common.Hash) error {
func IsParentErr(err error) bool {
_, ok := err.(*ParentErr)
-
return ok
}
@@ -48,7 +47,6 @@ func UncleError(format string, v ...interface{}) error {
func IsUncleErr(err error) bool {
_, ok := err.(*UncleErr)
-
return ok
}
@@ -67,7 +65,6 @@ func ValidationError(format string, v ...interface{}) *ValidationErr {
func IsValidationErr(err error) bool {
_, ok := err.(*ValidationErr)
-
return ok
}
@@ -86,7 +83,6 @@ func NonceError(is, exp uint64) *NonceErr {
func IsNonceErr(err error) bool {
_, ok := err.(*NonceErr)
-
return ok
}
@@ -121,24 +117,6 @@ func InvalidTxError(err error) *InvalidTxErr {
func IsInvalidTxErr(err error) bool {
_, ok := err.(*InvalidTxErr)
-
- return ok
-}
-
-type OutOfGasErr struct {
- Message string
-}
-
-func OutOfGasError() *OutOfGasErr {
- return &OutOfGasErr{Message: "Out of gas"}
-}
-func (self *OutOfGasErr) Error() string {
- return self.Message
-}
-
-func IsOutOfGasErr(err error) bool {
- _, ok := err.(*OutOfGasErr)
-
return ok
}