harness.zio.error.JarResourceError.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of harness-zio_3 Show documentation
Show all versions of harness-zio_3 Show documentation
Miscellaneous libraries/utilities for Scala.
package harness.zio.error
import harness.core.*
sealed trait JarResourceError extends Throwable {
override final def getMessage: String = this match {
case JarResourceError.PathDNE(path) =>
s"No such jar resource at path '$path'"
case JarResourceError.Generic(path, cause) =>
s"Encountered generic error when accessing jar resource at path '$path': ${cause.safeGetMessage}"
}
}
object JarResourceError {
final case class PathDNE(path: String) extends JarResourceError
final case class Generic(path: String, cause: Throwable) extends JarResourceError
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy