
urldsl.errors.ErrorFromThrowable.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of url-dsl_3 Show documentation
Show all versions of url-dsl_3 Show documentation
A tiny library for parsing and creating urls in a type-safe way
The newest version!
package urldsl.errors
/** You can implement this trait for your own error type A, and give a implicit instance in order to use the
* functionality requiring it, e.g., in [[urldsl.vocabulary.FromString]].
*
* @tparam A
* tye type of your error.
*/
trait ErrorFromThrowable[A] {
def fromThrowable(throwable: Throwable): A
}
object ErrorFromThrowable {
def apply[A](implicit error: ErrorFromThrowable[A]): ErrorFromThrowable[A] = error
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy