ValidationFailed

class ValidationFailed(val path: String, val reason: String) : MappingException

Constructors

Link copied to clipboard
constructor(path: String, reason: String)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard
open override val path: String

Field path from the mapping root, e.g. "customer.address.zipCode" or "items3.price".

Link copied to clipboard

Functions

Link copied to clipboard

Same exception type with prefix prepended to the path. Used by seams — NOT wrapping. Reconstructing means the rethrown exception's stack trace starts at the prefixing seam; the path string is the locator, by design.