
urldsl.errors.SimpleParamMatchingError.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.0.0-RC3 Show documentation
Show all versions of url-dsl_3.0.0-RC3 Show documentation
A tiny library for parsing and creating urls in a type-safe way
The newest version!
package urldsl.errors
sealed trait SimpleParamMatchingError
/**
* An implementation of [[ParamMatchingError]] that simply wraps the trigger of the error inside its components.
*/
object SimpleParamMatchingError {
case class MissingParameterError(paramName: String) extends SimpleParamMatchingError
case class FromThrowable(throwable: Throwable) extends SimpleParamMatchingError
implicit lazy val itIsParamMatchingError: ParamMatchingError[SimpleParamMatchingError] =
(paramName: String) => MissingParameterError(paramName)
implicit lazy val simpleParamMatchingErrorIsFromThrowable: ErrorFromThrowable[SimpleParamMatchingError] =
(throwable: Throwable) => FromThrowable(throwable)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy