Some error classes

This commit is contained in:
Andrew Golovashevich 2025-02-23 14:13:05 +03:00
parent d8804c0efc
commit 77f32fc5b6
3 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,8 @@
package ru.landgrafhomyak.db.serdha0.api
public open class ConfigurationError : Error {
public constructor() : super()
public constructor(message: String) : super(message)
public constructor(message: String, cause: Throwable) : super(message, cause)
public constructor(cause: Throwable) : super(cause)
}

View File

@ -0,0 +1,8 @@
package ru.landgrafhomyak.db.serdha0.api
public open class ExecutionException : RuntimeException {
public constructor() : super()
public constructor(message: String) : super(message)
public constructor(message: String, cause: Throwable) : super(message, cause)
public constructor(cause: Throwable) : super(cause)
}

View File

@ -0,0 +1,6 @@
package ru.landgrafhomyak.db.serdha0.api
import kotlin.jvm.JvmField
import ru.landgrafhomyak.db.serdha0.api.table.RowId
public class InvalidRowIdError(@JvmField public val badRowId: RowId<*>) : Error("Referenced row was removed from table: $badRowId")