FormErrors
class FormErrorsAn immutable, ordered collection of validation errors.
Error order is retained when constructing, appending, concatenating, and filtering. Duplicate errors are not removed.
Parameters
allall errors in reporting order
Defined by scalive.FormErrors. View source (scalive/api/src/scalive/forms/FormErrors.scala:32-62)
Methods7
+
def +(error: FormError): FormErrorsAppends error after all existing errors.
Defined by scalive.FormErrors.+. View source (scalive/api/src/scalive/forms/FormErrors.scala:40-41)
++
def ++(other: FormErrors): FormErrorsConcatenates errors with this collection's errors first.
Defined by scalive.FormErrors.++. View source (scalive/api/src/scalive/forms/FormErrors.scala:44-45)
forName
def forName(name: String): Vector[FormError]Permissively parses name, then returns exact-path matches in order.
Defined by scalive.FormErrors.forName. View source (scalive/api/src/scalive/forms/FormErrors.scala:52-53)
forPath
def forPath(path: FormPath): Vector[FormError]Returns errors whose path is exactly equal to path, preserving order.
Defined by scalive.FormErrors.forPath. View source (scalive/api/src/scalive/forms/FormErrors.scala:48-49)
isEmpty
def isEmpty: BooleanWhether there are no errors.
Defined by scalive.FormErrors.isEmpty. View source (scalive/api/src/scalive/forms/FormErrors.scala:34-34)
messages
def messages(name: String): Vector[String]Permissively parses name, then returns matching messages in order.
Defined by scalive.FormErrors.messages. View source (scalive/api/src/scalive/forms/FormErrors.scala:60-61)
def messages(path: FormPath): Vector[String]Returns messages for the exact path, preserving error order.
Defined by scalive.FormErrors.messages. View source (scalive/api/src/scalive/forms/FormErrors.scala:56-57)
nonEmpty
def nonEmpty: BooleanWhether there is at least one error.
Defined by scalive.FormErrors.nonEmpty. View source (scalive/api/src/scalive/forms/FormErrors.scala:37-37)
Values1
all
val all: Vector[FormError]Defined by scalive.FormErrors.all. View source (scalive/api/src/scalive/forms/FormErrors.scala:32-32)