%{ exception = _arg ?: _exception }% #{if exception instanceof play.exceptions.PlayException} #{if exception.sourceAvailable && exception.lineNumber && play.Play.mode.name() == 'DEV'}

In ${exception.sourceFile} (around line ${exception.lineNumber})

%{ from = exception.lineNumber - 5 >= 0 && exception.lineNumber <= exception.source.size() ? exception.lineNumber - 5 : 0 to = exception.lineNumber + 5 < exception.source.size() ? exception.lineNumber + 5 : exception.source.size()-1 }% #{list items:exception.source[from..to], as:'line'} ${play.utils.Utils.open(exception.sourceFile, line_index+from) ? ('').raw() : ''}
${line_index+from}:
 ${line.escape().toString().replace('↓', '').replace('\000', '').replace('\001', '').raw()}
${play.utils.Utils.open(exception.sourceFile, line_index+from) ? '
'.raw() : ''} #{/list}
#{/if} %{ moreHtml = exception.moreHTML }% #{if moreHtml}
${moreHtml.raw()}
#{/if}
This exception has been logged with id ${exception.id}
#{/if} #{else} #{/else}