-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Typed exceptions to consuming tests section
- Loading branch information
Showing
6 changed files
with
41 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Exceptions | ||
|
||
Exception types are represented as a JSON string in the test fixtures. | ||
|
||
The exception converted into a string is composed of the exception type name, | ||
followed by a period, followed by the specific exception name. | ||
|
||
For example, the exception | ||
[`TransactionException.INSUFFICIENT_ACCOUNT_FUNDS`](#ethereum_test_tools.TransactionException.INSUFFICIENT_ACCOUNT_FUNDS) | ||
Check failure on line 9 in docs/consuming_tests/exceptions.md GitHub Actions / build (ubuntu-latest, 3.10, 0.8.20, main, tox)Link fragments should be valid
|
||
is represented as `"TransactionException.INSUFFICIENT_ACCOUNT_FUNDS"`. | ||
|
||
The JSON string can contain multiple exception types, separated by the `|` | ||
character, denoting that the transaction or block can throw either one of | ||
the exceptions. | ||
|
||
## `TransactionException` | ||
|
||
::: ethereum_test_tools.TransactionException | ||
|
||
## `BlockException` | ||
|
||
::: ethereum_test_tools.BlockException |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters