Error

com.github.arturopala.validator.Validator$.Error
See theError companion object
sealed trait Error

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class And
class Or
class Single

Members list

Concise view

Value members

Abstract methods

def and(other: Error): Error

Combines this error with another one using logical conjunction.

Combines this error with another one using logical conjunction.

Attributes

def headMessage: String

Returns first error message.

Returns first error message.

Attributes

def map(f: String => String): Error

Maps error messages with the provided function.

Maps error messages with the provided function.

Attributes

def messages: Seq[String]

Returns all errors' messages in a depth-first flattened sequence.

Returns all errors' messages in a depth-first flattened sequence.

Attributes

def or(other: Error): Error

Combines this error with another one using logical disjunction.

Combines this error with another one using logical disjunction.

Attributes

def summary: String

Combines all errors' messages into a single sentence.

Combines all errors' messages into a single sentence.

Attributes