Skip to content

Commit

Permalink
added throwsMany documentation
Browse files Browse the repository at this point in the history
Co-authored-by: daniel-dios <daniel.schezdios@gmail.com>
  • Loading branch information
antonio-manuel and daniel-dios committed Oct 28, 2022
1 parent e405665 commit 6172ace
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,7 @@ An Answer can be followed up by one or more additional answers.
|`returnsMany list`|specify that the matched call returns a value from the list, with subsequent calls returning the next element|
|`returnsArgument(n)`|specify that the matched call returns the nth argument of that call|
|`throws ex`|specify that the matched call throws an exception|
|`throwsMany ex`| specify that the matched call throws an exception from the list, with subsequent calls throwing the next exception|
|`answers { code }`|specify that the matched call answers with a code block scoped with `answer scope`|
|`coAnswers { code }`|specify that the matched call answers with a coroutine code block with `answer scope`|
|`answers answerObj`|specify that the matched call answers with an Answer object|
Expand All @@ -1341,6 +1342,7 @@ So this is similar to the `returnsMany` semantics.
|`andThen value`|specify that the matched call returns one specified value|
|`andThenMany list`|specify that the matched call returns a value from the list, with subsequent calls returning the next element|
|`andThenThrows ex`|specify that the matched call throws an exception|
|`andThenThrowsMany ex`|specify that the matched call throws an exception from the list, with subsequent calls throwing the next exception|
|`andThen { code }`|specify that the matched call answers with a code block scoped with `answer scope`|
|`coAndThen { code }`|specify that the matched call answers with a coroutine code block with `answer scope`|
|`andThenAnswer answerObj`|specify that the matched call answers with an Answer object|
Expand Down

0 comments on commit 6172ace

Please sign in to comment.