diff options
Diffstat (limited to 'core/testdata/format/codeBlock.md')
-rw-r--r-- | core/testdata/format/codeBlock.md | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/core/testdata/format/codeBlock.md b/core/testdata/format/codeBlock.md new file mode 100644 index 00000000..08710390 --- /dev/null +++ b/core/testdata/format/codeBlock.md @@ -0,0 +1,31 @@ +[test](test/index) / [Throws](test/-throws/index) + + +# Throws + +`class Throws` + +This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. + + +Example: + + +``` +Throws(IOException::class) +fun readFile(name: String): String {...} +``` + + + + + + +### Constructors + + +| [<init>](test/-throws/-init-) | `Throws()` +This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. + + | + |