From 8e766490d98ebd5af7e381dd06d3351a11aa8982 Mon Sep 17 00:00:00 2001 From: sergeych Date: Mon, 5 Jan 2026 11:20:38 +0100 Subject: [PATCH] AccessException -> IllegalAccessException in docs --- docs/OOP.md | 4 ++-- docs/exceptions_handling.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/OOP.md b/docs/OOP.md index a07cd98..803b79e 100644 --- a/docs/OOP.md +++ b/docs/OOP.md @@ -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 diff --git a/docs/exceptions_handling.md b/docs/exceptions_handling.md index f6a56b2..1f08fef 100644 --- a/docs/exceptions_handling.md +++ b/docs/exceptions_handling.md @@ -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 | | | |