blob: 08710390fbb73a00da79c81d01133d303aecccfd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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.
|
|