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

io.atlassian.aws.WrappedInvalidException.scala Maven / Gradle / Ivy

package io.atlassian.aws

import kadai.Invalid
import scalaz.syntax.all._

object WrappedInvalidException {
  def orUnderlying(invalid: Invalid): Throwable =
    invalid match {
      case Invalid.Err(t) => t
      case _              => WrappedInvalidException(invalid)
    }
}

case class WrappedInvalidException private (invalid: Invalid) extends RuntimeException {
  override def toString: String = s"WrappedInvalidException(${invalid.shows})"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy