blob: 016ea9e89580f115c32f75ecb4ddce5ba02846bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
[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()`<br>This annotation indicates what exceptions should be declared by a function when compiled to a JVM method. |
|