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

scala.play.api.libs.json.JsonValidationError.scala Maven / Gradle / Ivy

/*
 * Copyright (C) 2009-2018 Lightbend Inc. 
 */

package play.api.libs.json

/**
 * A JSON validation error representation.
 */
case class JsonValidationError(messages: Seq[String], args: Any*) {
  lazy val message = messages.last
}

object JsonValidationError {
  def apply(message: String, args: Any*): JsonValidationError =
    JsonValidationError(Seq(message), args: _*)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy