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: _*)
}