TryModule

scala.quoted.Quotes.reflectModule.TryModule
trait TryModule

Methods of the module object val Try.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Quotes.this.reflectModule.this.Try.type

Members list

Value members

Abstract methods

def apply(expr: Quotes.this.reflectModule.this.Term, cases: List[Quotes.this.reflectModule.this.CaseDef], finalizer: Option[Quotes.this.reflectModule.this.Term]): Quotes.this.reflectModule.this.Try

Creates a try/catch try catch { } finally.

Creates a try/catch try catch { } finally.

Value parameters

cases

the list of catch case definitions

expr

the body expression of the try block

finalizer

the optional finally block expression

Attributes

Source
Quotes.scala
def copy(original: Quotes.this.reflectModule.this.Tree)(expr: Quotes.this.reflectModule.this.Term, cases: List[Quotes.this.reflectModule.this.CaseDef], finalizer: Option[Quotes.this.reflectModule.this.Term]): Quotes.this.reflectModule.this.Try

Attributes

Source
Quotes.scala

Matches a try/catch try catch { } finally.

Matches a try/catch try catch { } finally.

Value parameters

x

the Try to match against

Attributes

Source
Quotes.scala