2018-04-06 16:52:10 +02:00
|
|
|
# Nimbus
|
2024-06-17 14:56:39 +07:00
|
|
|
# Copyright (c) 2018-2024 Status Research & Development GmbH
|
2018-04-06 16:52:10 +02:00
|
|
|
# Licensed under either of
|
|
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
2018-01-15 20:42:40 +02:00
|
|
|
type
|
2019-07-19 11:39:54 +02:00
|
|
|
EVMError* = object of CatchableError
|
2018-01-15 20:42:40 +02:00
|
|
|
## Base error class for all evm errors.
|
|
|
|
|
|
|
|
BlockNotFound* = object of EVMError
|
|
|
|
## The block with the given number/hash does not exist.
|
|
|
|
|
|
|
|
CanonicalHeadNotFound* = object of EVMError
|
|
|
|
## The chain has no canonical head.
|
|
|
|
|
|
|
|
ValidationError* = object of EVMError
|
|
|
|
## Error to signal something does not pass a validation check.
|
|
|
|
|
2023-09-26 10:21:13 +01:00
|
|
|
CoreDbApiError* = object of CatchableError
|
|
|
|
## Errors related to `CoreDB` API
|