TypeMappingException

class TypeMappingException(val messageEnum: TypeMappingExceptionMessage, val value: Any? = null, val targetType: String? = null, val rowData: Map<String, Any?>? = null, val propertyName: String? = null, cause: Throwable? = null) : FatalDatabaseException

Exception thrown when data cannot be mapped between the database and Kotlin objects.

This covers issues with kotlinx.serialization, reflection-based mapping to data classes, and custom type converters.

As a FatalDatabaseException, it usually indicates a mismatch between the SQL query result and the target Kotlin model (e.g., missing column, incompatible type, or unexpected null).

Constructors

Link copied to clipboard
constructor(messageEnum: TypeMappingExceptionMessage, value: Any? = null, targetType: String? = null, rowData: Map<String, Any?>? = null, propertyName: String? = null, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Any?

Functions

Link copied to clipboard
open override fun getDetailedMessage(): String

Subclasses can provide additional technical details here.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Enriches the exception with a full query context.

Link copied to clipboard

Enriches the exception with the transaction step index.