fixed errors with some exception object naming and serialization

This commit is contained in:
sergeych committed 2025-11-07 02:52:15 +04:00
1 parent 65963ce537
commit 6ca3e4589e
3 files changed
+7 -4

No files matched your search

+1
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
+1 -1
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 {
@@ -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)