Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e55e99

Browse files
committed
Documentation improvements
1 parent c7e7eb2 commit 9e55e99

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

docs/userguide/annotations.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,9 +1179,13 @@ Keep in mind that when your test runs as autonomous transaction it will not see
11791179

11801180
### Throws
11811181

1182-
The `--%throws` annotation allows you to specify a list of exception either by numbers or by exception type that can be expected from a test.
1182+
The `--%throws` annotation allows you to specify a list of exceptions as one of:
1183+
- number literals
1184+
- variables of type exception defined in a package specification
1185+
- variables of type number defined in a package specification
1186+
- [predefined oracle exceptions](https://docs.oracle.com/cd/E11882_01/timesten.112/e21639/exceptions.htm#CIHFIGFE)
11831187

1184-
If `--%throws(-20001,-20002)` is specified and no exception is raised or the exception raised is not on the list of provided exception numbers, the test is marked as failed.
1188+
If `--%throws(-20001,-20002)` is specified and no exception is raised or the exception raised is not on the list of provided exceptions, the test is marked as failed.
11851189

11861190
The framework ignores bad arguments. `--%throws(7894562, operaqk, -=1, -20496, pow74d, posdfk3)` will be interpreted as `--%throws(-20496)`.
11871191
The annotation is ignored, when no valid arguments are provided `--%throws()`,`--%throws`, `--%throws(abe, 723pf)`.

0 commit comments

Comments
 (0)