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

inputvalidator.Errors.scala Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package inputvalidator

case class Errors(errors: Map[String, Seq[Error]]) {

  def isEmpty: Boolean = errors.isEmpty

  def size: Int = errors.size

  def get(key: String): Seq[Error] = errors.getOrElse(key, Nil)

  def toMap() = errors

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy