MappingException
Exception thrown when a type conversion or data mapping operation fails.
This includes scenarios like failing to convert data between incompatible types (e.g., mapping an Int to a String), missing columns in a database row, or missing required non-nullable properties in a Kotlin class.
Parameters
The underlying exception that caused this failure, if any.
Where in the nested object structure the mapping error occurred, for a frame that knows it already. Kept on OctaviusException, which every layer that has something to add to it writes to; this is only the first segment, for the mapper that raises the exception at the depth it found the fault.
Constructors
Properties
Where this happened, innermost first, appended to by each layer as the exception unwinds. It is on the base class for the same reason queryContext is: adding to it is the only thing a frame can do to an exception without replacing it, and replacing one costs the type the caller catches on - a ConstraintViolationException restated as something else stops being the failure a retry looks for. A mapper walking a nested composite appends the attribute it was on, a transaction plan the step and parameter it was resolving. Rendered reversed, outermost first, so PATH: step 1 -> parameter 'name' -> map #1 reads from the plan down to the lambda.
The context of the query that resulted in this exception, if applicable.
The reason the mapping failed.
The raw error message received from the database, if applicable.