github.com/bytom/bytom@v1.1.2-0.20221014091027-bbcba3df6075/protocol/vm/errors.go (about)

     1  package vm
     2  
     3  import "errors"
     4  
     5  var (
     6  	ErrAltStackUnderflow  = errors.New("alt stack underflow")
     7  	ErrBadValue           = errors.New("bad value")
     8  	ErrContext            = errors.New("wrong context")
     9  	ErrDataStackUnderflow = errors.New("data stack underflow")
    10  	ErrDisallowedOpcode   = errors.New("disallowed opcode")
    11  	ErrDivZero            = errors.New("division by zero")
    12  	ErrFalseVMResult      = errors.New("false VM result")
    13  	ErrLongProgram        = errors.New("program size exceeds maxint32")
    14  	ErrRange              = errors.New("range error")
    15  	ErrReturn             = errors.New("RETURN executed")
    16  	ErrRunLimitExceeded   = errors.New("run limit exceeded")
    17  	ErrShortProgram       = errors.New("unexpected end of program")
    18  	ErrToken              = errors.New("unrecognized token")
    19  	ErrUnexpected         = errors.New("unexpected error")
    20  	ErrUnsupportedVM      = errors.New("unsupported VM")
    21  	ErrVerifyFailed       = errors.New("VERIFY failed")
    22  )