ComponentValidationMessage

open class ComponentValidationMessage(val path: String, val severity: Severity, val message: String, val details: String? = null) : ValidationMessage

Special ValidationMessage for fritz2 headless components.

Important: path should be generated by using the Inspector.path in your Validation. By default, the validation fails if one or more ComponentValidationMessages have a severity of Severity.Error. You can override the isError method to change this behavior.

Parameters

path

location of the validated field in model

severity

used for rendering the ValidationMessage

message

contains the message

details

optional details for extending the message

Constructors

Link copied to clipboard
fun ComponentValidationMessage(path: String, severity: Severity, message: String, details: String? = null)

Functions

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

Properties

Link copied to clipboard
val details: String? = null
Link copied to clipboard
open override val isError: Boolean
Link copied to clipboard
Link copied to clipboard
open override val path: String
Link copied to clipboard