AccessException -> IllegalAccessException in docs
This commit is contained in:
parent
514ad96148
commit
8e766490d9
@ -558,7 +558,7 @@ class SecretCounter {
|
|||||||
|
|
||||||
val c = SecretCounter()
|
val c = SecretCounter()
|
||||||
println(c.count) // OK
|
println(c.count) // OK
|
||||||
c.count = 10 // Throws AccessException
|
c.count = 10 // Throws IllegalAccessException
|
||||||
c.increment() // OK
|
c.increment() // OK
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -594,7 +594,7 @@ val d = Derived()
|
|||||||
println(d.state) // OK: "initial"
|
println(d.state) // OK: "initial"
|
||||||
d.changeState("updated")
|
d.changeState("updated")
|
||||||
println(d.state) // OK: "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
|
### Key Rules and Limitations
|
||||||
|
|||||||
@ -165,7 +165,7 @@ _this functionality is not yet released_
|
|||||||
| IllegalAssignmentException | assigning to val, etc. |
|
| IllegalAssignmentException | assigning to val, etc. |
|
||||||
| SymbolNotDefinedException | |
|
| SymbolNotDefinedException | |
|
||||||
| IterationEndException | attempt to read iterator past end, `hasNext == false` |
|
| 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 |
|
| UnknownException | unexpected kotlin exception caught |
|
||||||
| | |
|
| | |
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user