ethereum.forks.tangerine_whistle.vm.exceptionsethereum.forks.spurious_dragon.vm.exceptions
Ethereum Virtual Machine (EVM) Exceptions.
.. contents:: Table of Contents :backlinks: none :local:
Introduction
Exceptions which cause the EVM to halt exceptionally.
ExceptionalHalt ¶
Indicates that the EVM has experienced an exceptional halt. This causes execution to immediately end with all gas being consumed.
class ExceptionalHalt:
StackUnderflowError ¶
Occurs when a pop is executed on an empty stack.
class StackUnderflowError:
StackOverflowError ¶
Occurs when a push is executed on a stack at max capacity.
class StackOverflowError:
OutOfGasError ¶
Occurs when an operation costs more than the amount of gas left in the frame.
class OutOfGasError:
InvalidOpcode ¶
Raised when an invalid opcode is encountered.
class InvalidOpcode:
code¶
| 54 | code: int |
|---|
__init__ ¶
def __init__(self, code: int) -> None:
| 57 | super().__init__(code) |
|---|---|
| 58 | self.code = code |
InvalidJumpDestError ¶
Occurs when the destination of a jump operation doesn't meet any of the following criteria.
The jump destination is less than the length of the code.
The jump destination should have the
JUMPDESTopcode (0x5B).The jump destination shouldn't be part of the data corresponding to
PUSH-Nopcodes.
class InvalidJumpDestError:
StackDepthLimitError ¶
Raised when the message depth is greater than 1024.
class StackDepthLimitError:
AddressCollision ¶
Raised when the new contract address has a collision.
class AddressCollision: