fixed errors with some exception object naming and serialization

This commit is contained in:
Sergey Chernov 2025-11-07 02:52:15 +04:00
parent 65963ce537
commit 6ca3e4589e
3 changed files with 7 additions and 4 deletions

1
.gitignore vendored
View File

@ -15,3 +15,4 @@ xcuserdata
/kotlin-js-store/yarn.lock
/test.lyng
/sample_texts/1.txt.gz
/kotlin-js-store/wasm/yarn.lock

View File

@ -21,7 +21,7 @@ import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
group = "net.sergeych"
version = "0.9.3"
version = "0.9.3-SNAPSHOT"
buildscript {
repositories {

View File

@ -166,13 +166,15 @@ open class ObjException(
"ClassCastException",
"IndexOutOfBoundsException",
"IllegalArgumentException",
"IllegalStateException",
"NoSuchElementException",
"IllegalAssignmentException",
"SymbolNotDefinedException",
"IterationEndException",
"AccessException",
"UnknownException",
"NotFoundException"
"NotFoundException",
"IllegalOperationException"
)) {
scope.addConst(name, getOrCreateExceptionClass(name))
}
@ -197,10 +199,10 @@ class ObjIllegalStateException(scope: Scope, message: String = "illegal state")
@Suppress("unused")
class ObjNoSuchElementException(scope: Scope, message: String = "no such element") :
ObjException("IllegalArgumentException", scope, message)
ObjException("NoSuchElementException", scope, message)
class ObjIllegalAssignmentException(scope: Scope, message: String = "illegal assignment") :
ObjException("NoSuchElementException", scope, message)
ObjException("IllegalAssignmentException", scope, message)
class ObjSymbolNotDefinedException(scope: Scope, message: String = "symbol is not defined") :
ObjException("SymbolNotDefinedException", scope, message)