fixed errors with some exception object naming and serialization
This commit is contained in:
parent
65963ce537
commit
6ca3e4589e
1
.gitignore
vendored
1
.gitignore
vendored
@ -15,3 +15,4 @@ xcuserdata
|
|||||||
/kotlin-js-store/yarn.lock
|
/kotlin-js-store/yarn.lock
|
||||||
/test.lyng
|
/test.lyng
|
||||||
/sample_texts/1.txt.gz
|
/sample_texts/1.txt.gz
|
||||||
|
/kotlin-js-store/wasm/yarn.lock
|
||||||
|
|||||||
@ -21,7 +21,7 @@ import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
|
|||||||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||||||
|
|
||||||
group = "net.sergeych"
|
group = "net.sergeych"
|
||||||
version = "0.9.3"
|
version = "0.9.3-SNAPSHOT"
|
||||||
|
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
@ -166,13 +166,15 @@ open class ObjException(
|
|||||||
"ClassCastException",
|
"ClassCastException",
|
||||||
"IndexOutOfBoundsException",
|
"IndexOutOfBoundsException",
|
||||||
"IllegalArgumentException",
|
"IllegalArgumentException",
|
||||||
|
"IllegalStateException",
|
||||||
"NoSuchElementException",
|
"NoSuchElementException",
|
||||||
"IllegalAssignmentException",
|
"IllegalAssignmentException",
|
||||||
"SymbolNotDefinedException",
|
"SymbolNotDefinedException",
|
||||||
"IterationEndException",
|
"IterationEndException",
|
||||||
"AccessException",
|
"AccessException",
|
||||||
"UnknownException",
|
"UnknownException",
|
||||||
"NotFoundException"
|
"NotFoundException",
|
||||||
|
"IllegalOperationException"
|
||||||
)) {
|
)) {
|
||||||
scope.addConst(name, getOrCreateExceptionClass(name))
|
scope.addConst(name, getOrCreateExceptionClass(name))
|
||||||
}
|
}
|
||||||
@ -197,10 +199,10 @@ class ObjIllegalStateException(scope: Scope, message: String = "illegal state")
|
|||||||
|
|
||||||
@Suppress("unused")
|
@Suppress("unused")
|
||||||
class ObjNoSuchElementException(scope: Scope, message: String = "no such element") :
|
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") :
|
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") :
|
class ObjSymbolNotDefinedException(scope: Scope, message: String = "symbol is not defined") :
|
||||||
ObjException("SymbolNotDefinedException", scope, message)
|
ObjException("SymbolNotDefinedException", scope, message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user