<?php $exception = new StatamicParseException(...$args);
$trace = $exception->getTrace();
array_unshift($trace, [
'file' => $e->getFile(),
'line' => $e->getLine(),
'class' => StatamicParseException::class,
'args' => $args,
]);
$traceProperty = new ReflectionProperty('Exception', 'trace');
$traceProperty->setAccessible(true);
$traceProperty->setValue($exception, $trace);