turbolift.io.Exceptions.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of turbolift-core_3 Show documentation
Show all versions of turbolift-core_3 Show documentation
Algebraic Effects for Scala 3
The newest version!
package turbolift.io
import scala.util.control.ControlThrowable
import turbolift.interpreter.Prompt
object Exceptions:
case object Cancelled extends ControlThrowable("Fiber cancelled.")
final class Pending extends RuntimeException("Fiber pending.")
final class Aborted(value: Any, prompt: Prompt) extends ControlThrowable
final class Unhandled(throwable: Throwable) extends RuntimeException(throwable)
final class Panic(msg: String) extends RuntimeException(msg)