All Downloads are FREE. Search and download functionalities are using the official Maven repository.

octopus.ValidationError.scala Maven / Gradle / Ivy

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