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

org.json4s.MappingException.scala Maven / Gradle / Ivy

There is a newer version: 4.1.0-M8
Show newest version
package org.json4s

class MappingException(val msg: String, val cause: Exception) extends Exception(msg, cause) {
  def this(msg: String) = this(msg, null)
}

object MappingException {
  class Multi(val errors: Seq[MappingException], cause: Exception)
    extends MappingException(
      msg = errors.map(_.msg).mkString(", "),
      cause = cause
    ) {
    def this(errors: Seq[MappingException]) = this(errors, errors.headOption.orNull)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy