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

com.twitter.finatra.json.internal.caseclass.exceptions.CaseClassMappingException.scala Maven / Gradle / Ivy

package com.twitter.finatra.json.internal.caseclass.exceptions

import com.fasterxml.jackson.databind.JsonMappingException

case class CaseClassMappingException(
  validationExceptions: Set[CaseClassValidationException] = Set())
  extends JsonMappingException("") {

  val errors = validationExceptions.toSeq.sortBy(_.getMessage)

  override def getMessage: String = {
    "\nErrors:\t\t" + errors.mkString(", ") + "\n\n"
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy