@import play.api.UsefulException @import config.WorkbenchConfig.WorkspaceReact @(exception: UsefulException, intent: String, showExceptionId: Boolean = true, showDetails: Boolean = true, title: Option[String] = None, details: Option[String] = None)(implicit session: play.api.mvc.Session, workspaceReact: WorkspaceReact) @frame { } {

@{title.getOrElse(exception.title)}

@{details.getOrElse(exception.description)}

@if(showExceptionId) {
This exception has been logged with id @exception.id.
} @if(showDetails) {
}
@if(showDetails) { }
} @stacktrace(ex: Throwable) = {

@for(el <- ex.getStackTrace) { @el.toString
}

@if(ex.getCause != null) { Cause: @ex.getCause.getMessage @stacktrace(ex.getCause) } }