github.com/ontio/ontology@v1.14.4/vm/evm/errors/errors.go (about)

     1  // Copyright (C) 2021 The Ontology Authors
     2  // Copyright 2016 The go-ethereum Authors
     3  // This file is part of the go-ethereum library.
     4  //
     5  // The go-ethereum library is free software: you can redistribute it and/or modify
     6  // it under the terms of the GNU Lesser General Public License as published by
     7  // the Free Software Foundation, either version 3 of the License, or
     8  // (at your option) any later version.
     9  //
    10  // The go-ethereum library is distributed in the hope that it will be useful,
    11  // but WITHOUT ANY WARRANTY; without even the implied warranty of
    12  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    13  // GNU Lesser General Public License for more details.
    14  //
    15  // You should have received a copy of the GNU Lesser General Public License
    16  // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>.
    17  
    18  package errors
    19  
    20  import "errors"
    21  
    22  // List evm execution errors
    23  var (
    24  	// ErrInvalidSubroutineEntry means that a BEGINSUB was reached via iteration,
    25  	// as opposed to from a JUMPSUB instruction
    26  	ErrInvalidSubroutineEntry   = errors.New("invalid subroutine entry")
    27  	ErrOutOfGas                 = errors.New("out of gas")
    28  	ErrCodeStoreOutOfGas        = errors.New("contract creation code storage out of gas")
    29  	ErrDepth                    = errors.New("max call depth exceeded")
    30  	ErrInsufficientBalance      = errors.New("insufficient balance for transfer")
    31  	ErrContractAddressCollision = errors.New("contract address collision")
    32  	ErrExecutionReverted        = errors.New("execution reverted")
    33  	ErrMaxCodeSizeExceeded      = errors.New("max code size exceeded")
    34  	ErrInvalidJump              = errors.New("invalid jump destination")
    35  	ErrWriteProtection          = errors.New("write protection")
    36  	ErrReturnDataOutOfBounds    = errors.New("return data out of bounds")
    37  	ErrGasUintOverflow          = errors.New("gas uint64 overflow")
    38  	ErrInvalidRetsub            = errors.New("invalid retsub")
    39  	ErrReturnStackExceeded      = errors.New("return stack limit reached")
    40  )