{$exception->getCode()}
{$exception->getMessage()}
{{if $exception instanceof \IPS\Db\Exception}}
{{$trace = $exception->getTrace();}}
{{if $trace[3]['function'] == 'installDatabaseUpdates'}}
{expression="\IPS\ROOT_PATH"}/applications/{$trace[4]['args'][0][1]}/setup/upg_{$trace[3]['args'][0]}/queries.json{{if isset($_SESSION['lastJsonIndex'])}} - query #{$_SESSION['lastJsonIndex']}{{endif}}
{{if $exception->query}}{$exception->query}{{else}}{$trace[0]['args'][0]}{{endif}}
{{else}}
{$trace[1]['file']}::{$trace[1]['line']}
{{if $exception->query}}{$exception->query}{{else}}{$trace[0]['args'][0]}{{endif}}
{{endif}}
{{else}}
{$exception->getFile()}::{$exception->getLine()}
{{endif}}
{{if $retryUrl}}