object MonadCatchIO extends MonadCatchIOFunctions
- Source
- MonadCatchIO.scala
- Alphabetic
- By Inheritance
- MonadCatchIO
- MonadCatchIOFunctions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
implicit
def
KleisliMonadCatchIO[F[_], R](implicit F: MonadCatchIO[F]): MonadCatchIO[[γ$2$]Kleisli[F, R, γ$2$]]
- Definition Classes
- MonadCatchIOFunctions
-
def
apply[M[_]](implicit M: MonadCatchIO[M]): MonadCatchIO[M]
- Annotations
- @inline()
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bracket[M[_], A, B, C](before: M[A])(after: (A) ⇒ M[B])(during: (A) ⇒ M[C])(implicit arg0: MonadCatchIO[M]): M[C]
- Definition Classes
- MonadCatchIOFunctions
-
def
bracketOnError[M[_], A, B, C](before: M[A])(after: (A) ⇒ M[B])(during: (A) ⇒ M[C])(implicit arg0: MonadCatchIO[M]): M[C]
A variant of "bracket" that performs the final action only if there was an error.
A variant of "bracket" that performs the final action only if there was an error.
- Definition Classes
- MonadCatchIOFunctions
-
def
bracket_[M[_], A, B, C](before: M[A])(after: M[B])(during: M[C])(implicit arg0: MonadCatchIO[M]): M[C]
A variant of "bracket" where the return value of this computation is not needed.
A variant of "bracket" where the return value of this computation is not needed.
- Definition Classes
- MonadCatchIOFunctions
-
def
catchLeft[M[_], A](ma: M[A])(implicit arg0: MonadCatchIO[M]): M[\/[Throwable, A]]
Returns a disjunction result which is right if no exception was raised, or left if an exception was raised.
Returns a disjunction result which is right if no exception was raised, or left if an exception was raised.
- Definition Classes
- MonadCatchIOFunctions
-
def
catchSome[M[_], A, B](ma: M[A])(p: (Throwable) ⇒ Option[B], handler: (B) ⇒ M[A])(implicit arg0: MonadCatchIO[M]): M[A]
Executes the handler for exceptions that are raised and match the given predicate.
Executes the handler for exceptions that are raised and match the given predicate. Other exceptions are rethrown.
- Definition Classes
- MonadCatchIOFunctions
-
def
catchSomeLeft[M[_], A, B](ma: M[A])(p: (Throwable) ⇒ Option[B])(implicit arg0: MonadCatchIO[M]): M[\/[B, A]]
Like "catchLeft" but takes a predicate to select which exceptions are caught.
Like "catchLeft" but takes a predicate to select which exceptions are caught.
- Definition Classes
- MonadCatchIOFunctions
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
ensuring[M[_], A, B](ma: M[A], sequel: M[B])(implicit arg0: MonadCatchIO[M]): M[A]
Like "bracket", but takes only a computation to run afterward.
Like "bracket", but takes only a computation to run afterward. Generalizes "finally".
- Definition Classes
- MonadCatchIOFunctions
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
except[M[_], A](ma: M[A])(handler: (Throwable) ⇒ M[A])(implicit M: MonadCatchIO[M]): M[A]
- Definition Classes
- MonadCatchIOFunctions
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
onException[M[_], A, B](ma: M[A], action: M[B])(implicit arg0: MonadCatchIO[M]): M[A]
Like "finally", but only performs the final action if there was an exception.
Like "finally", but only performs the final action if there was an exception.
- Definition Classes
- MonadCatchIOFunctions
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- implicit def theseTMonadCatchIO[M[_], E](implicit arg0: MonadCatchIO[M], arg1: Semigroup[E]): MonadCatchIO[[γ$0$]TheseT[M, E, γ$0$]]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
using[M[_], A, B](ma: M[A])(f: (A) ⇒ M[B])(implicit M: MonadCatchIO[M], resource: Resource[A]): M[B]
An automatic resource management.
An automatic resource management.
- Definition Classes
- MonadCatchIOFunctions
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )