CanThrow

scala.CanThrow
class CanThrow[-E <: Exception] extends Control, Erased

A capability class that allows to throw exception E. When used with the experimental.saferExceptions feature, a throw Ex() expression will require a given of class CanThrow[Ex] to be available.

Attributes

Experimental
true
Source
CanThrow.scala
Graph
Supertypes
trait Erased
trait Control
trait Sharable
trait Classifier
trait Capability
class Object
trait Matchable
class Any
Show all
In this article