ApplicativeErrorOps

doobie.syntax.ApplicativeErrorOps
class ApplicativeErrorOps[M[_], A](self: M[A])(implicit ev: ApplicativeError[M, Throwable])

Attributes

Source
applicativeerror.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def attemptSomeSqlState[B](f: PartialFunction[SqlState, B]): M[Either[B, A]]

Attributes

Source
applicativeerror.scala
def attemptSql: M[Either[SQLException, A]]

Attributes

Source
applicativeerror.scala
def attemptSqlState: M[Either[SqlState, A]]

Attributes

Source
applicativeerror.scala
def exceptSomeSqlState(pf: PartialFunction[SqlState, M[A]]): M[A]

Attributes

Source
applicativeerror.scala
def exceptSql(handler: SQLException => M[A]): M[A]

Attributes

Source
applicativeerror.scala
def exceptSqlState(handler: SqlState => M[A]): M[A]

Attributes

Source
applicativeerror.scala
def onSqlException[B](action: M[B]): M[A]

Attributes

Source
applicativeerror.scala