@page "/error"
@inherits APageComponent
@{try{
<!--=============================================================================================-->
if (@HasError)
{
<AButton Style="float: right" Title=@ForgetErrorTitle Focusable=@false
         ON_Click=@ButtonForgetError_OnClick>
   <img src="lib/open-iconic/png/x-2x.png" />&nbsp;&nbsp;<span style="vertical-align: middle">Forget this error</span>
</AButton>
<p class="page_ImpressiveTitle">
   Error in <b>BookRegistry</b>-application (SPA)
</p>
}
else
{
<span class="page_ModestTitle">
   There is no last error information about application error.
</span>
}
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
@if (ExceptionCause != null)
{
<p id="pg_error_ExceptionCause">@ExceptionCause</p>
}
@if (ErrorMessageHtml != null)
{
<p id="pg_error_ErrorMessage">@ErrorMessageHtml</p>
}
@if (ExceptionMarkup.HasValue)
{
<p class=@ExceptionMarkupClass>@ExceptionMarkup.Value</p>
}
<!--=============================================================================================-->
}catch(Exception e){ProcessRenderingError(GetType(),e,false);}}
