FormValidationException

class FormValidationException(val errors: FormErrors, cause: Throwable? = null) : RuntimeException

Exception used for handling validation errors during the submission process.

This exception is useful when the validation logic is on the API side and validation errors can be detected from the response's status code. By passing a mapping of field names to error messages in errors, you can identify the fields where errors occurred.

Constructors

Link copied to clipboard
constructor(errors: FormErrors, cause: Throwable? = null)

Creates a new instance with specified validation error information.

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

Mapping of validation error information.

Link copied to clipboard
open val message: String?