
octopus.ValidationError.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of octopus_sjs0.6_2.12 Show documentation
Show all versions of octopus_sjs0.6_2.12 Show documentation
Boilerplate-free validation library for Scala
The newest version!
package octopus
case class ValidationError(message: String, path: FieldPath = FieldPath.empty) extends Serializable {
def ::(pathElement: PathElement): ValidationError =
copy(path = pathElement :: path)
def toPair: (String, String) =
path.asString -> message
def asString: String =
s"${path.asString}: $message"
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy