{$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}}
{$exception->query}
{{else}} {$trace[1]['file']}::{$trace[1]['line']}
{$exception->query}
{{endif}} {{else}} {$exception->getFile()}::{$exception->getLine()} {{endif}}
{{if $retryUrl}} Retry? {{endif}} {{if $showContinueUrl}} Continue {{endif}}