package exceptions
- Alphabetic
- Public
- Protected
Type Members
- class APIContractViolationException extends IllegalStateException with Serializable
Generic exception thrown on API contract violations.
- class BufferOverflowException extends RuntimeException with Serializable
An exception emitted on buffer overflows, like when using OverflowStrategy.Fail.
- class CallbackCalledMultipleTimesException extends APIContractViolationException
Thrown when signaling is attempted multiple times for Callback or similar.
- final class CompositeException extends RuntimeException with Serializable
A composite exception represents a list of exceptions that were caught while delaying errors.
- class DownstreamTimeoutException extends TimeoutException with Serializable
Exception thrown whenever a downstream listener on a back-pressured data-source is taking too long to process a received event.
- final case class DummyException(message: String) extends RuntimeException with Serializable with Product
Used in testing to trigger dummy exceptions.
Used in testing to trigger dummy exceptions.
Not to be used for anything except in testing, since this exception type implements structural equality.
This means that these 2 exceptions are considered equal, even if they have different stack-traces:
val dummy1 = DummyException("dummy") val dummy2 = DummyException("dummy") dummy == dummy2 //=> true
- class ExecutionRejectedException extends RuntimeException with Serializable
Exception thrown whenever an execution attempt was rejected.
Exception thrown whenever an execution attempt was rejected.
Such execution attempts can come for example from
Task
or from methods returningFuture
references, with this exception being thrown in case the execution was rejected due to in place protections, such as a circuit breaker. - class UncaughtErrorException[E] extends RuntimeException
The UncaughtErrorException wraps uncaught, generic errors.
The UncaughtErrorException wraps uncaught, generic errors.
val ex: UncaughtErrorException[String] = UncaughtErrorException("Error!")
- class UpstreamTimeoutException extends TimeoutException with Serializable
Exception thrown whenever a upstream listener on a back-pressured data-source is taking too long to process a received event.
Value Members
- object APIContractViolationException extends AbstractFunction1[String, APIContractViolationException] with Serializable
- object BufferOverflowException extends AbstractFunction1[String, BufferOverflowException] with Serializable
- object CallbackCalledMultipleTimesException extends AbstractFunction1[String, CallbackCalledMultipleTimesException] with Serializable
- object CompositeException extends AbstractFunction1[Seq[Throwable], CompositeException] with Serializable
- object DownstreamTimeoutException extends AbstractFunction1[FiniteDuration, DownstreamTimeoutException] with Serializable
- object ExecutionRejectedException extends AbstractFunction1[String, ExecutionRejectedException] with Serializable
- object UncaughtErrorException extends Serializable
- object UpstreamTimeoutException extends AbstractFunction1[FiniteDuration, UpstreamTimeoutException] with Serializable
This is the API documentation for the Monix library.
Package Overview
monix.execution exposes lower level primitives for dealing with asynchronous execution:
Atomic
types, as alternative tojava.util.concurrent.atomic
monix.catnap exposes pure abstractions built on top of the Cats-Effect type classes:
monix.eval is for dealing with evaluation of results, thus exposing Task and Coeval.
monix.reactive exposes the
Observable
pattern:Observable
implementationsmonix.tail exposes Iterant for purely functional pull based streaming:
Batch
andBatchCursor
, the alternatives to Scala'sIterable
andIterator
respectively that we are using within Iterant's encodingYou can control evaluation with type you choose - be it Task, Coeval, cats.effect.IO or your own as long as you provide correct cats-effect or cats typeclass instance.