$new static method

$Exception $new(
  1. Runtime runtime,
  2. $Value? target,
  3. List<$Value?> args
)

Create a new $Exception wrapping Exception.new

Implementation

static $Exception $new(Runtime runtime, $Value? target, List<$Value?> args) {
  return $Exception.wrap(Exception(args[0]?.$value));
}