Skip to main content

crashtest.hxsmith.features.exceptions

try/catch/throw: typed catch clauses, rethrow, helpers that throw, try as an expression, jumps out of try.

class Clause​

One catch (name:ty): the kinds of thrown value it takes and how to print what it caught.

ty: str​

var: Optional[Ty]​

covers: FrozenSet[str]​

show: Callable[[str], str]​

init​

def __init__(ty: str, var: Optional[Ty], covers: FrozenSet[str], show: Callable[[str], str]) -> None

class Exceptions(Feature)​

name​

name = 'exceptions'

summary​

summary = 'try/catch with typed clauses, throw, rethrow, throwing helpers, try as value, jumps out of try'

covers​

covers = ('ETry', 'EThrow', 'EClass', 'HExtends', 'AStatic', 'APublic', 'AOverride', 'FFun', 'FVar', 'std:haxe.Exception')

order​

order = 46

declare​

def declare(g: Gen) -> None

stmts​

def stmts(g: Gen)

exprs​

def exprs(g: Gen, ty: Ty)

KINDS​

KINDS = frozenset({'str', 'int', 'err', 'box'})