ThrownException

dotty.tools.dotc.core.Annotations$.ThrownException$

Extracts the type of the thrown exception from an annotation.

Supports both "old-style" @throws(classOf[Exception]) as well as "new-style" @throws[Exception]("cause") annotations.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def unapply(a: Annotation)(using Context): Option[Type]