AccessException -> IllegalAccessException in docs

This commit is contained in:
Sergey Chernov 2026-01-05 11:20:38 +01:00
parent 514ad96148
commit 8e766490d9
2 changed files with 3 additions and 3 deletions

View File

@ -558,7 +558,7 @@ class SecretCounter {
val c = SecretCounter()
println(c.count) // OK
c.count = 10 // Throws AccessException
c.count = 10 // Throws IllegalAccessException
c.increment() // OK
```
@ -594,7 +594,7 @@ val d = Derived()
println(d.state) // OK: "initial"
d.changeState("updated")
println(d.state) // OK: "updated"
d.state = "bad" // Throws AccessException: public write not allowed
d.state = "bad" // Throws IllegalAccessException: public write not allowed
```
### Key Rules and Limitations

View File

@ -165,7 +165,7 @@ _this functionality is not yet released_
| IllegalAssignmentException | assigning to val, etc. |
| SymbolNotDefinedException | |
| IterationEndException | attempt to read iterator past end, `hasNext == false` |
| AccessException | attempt to access private members or like |
| IllegalAccessException | attempt to access private members or like |
| UnknownException | unexpected kotlin exception caught |
| | |