public Render ( HtmlHelper helper, PartialRequest partialRequestHandler, IContentData contentData, TemplateModel templateModel ) : void | ||
helper | HtmlHelper | |
partialRequestHandler | PartialRequest | |
contentData | IContentData | |
templateModel | TemplateModel | |
return | void |
public void Render(HtmlHelper helper, PartialRequest partialRequestHandler, IContentData contentData, TemplateModel templateModel)
{
try
{
_mvcRenderer.Render(helper, partialRequestHandler, contentData, templateModel);
}
catch (NullReferenceException ex)
{
if (HttpContext.Current.IsDebuggingEnabled)
{
//If debug="true" we assume a developer is making the request
throw;
}
HandlerError(helper, contentData, ex);
}
catch (ArgumentException ex)
{
if (HttpContext.Current.IsDebuggingEnabled)
{
throw;
}
HandlerError(helper, contentData, ex);
}
catch (ApplicationException ex)
{
if (HttpContext.Current.IsDebuggingEnabled)
{
throw;
}
HandlerError(helper, contentData, ex);
}
catch (InvalidOperationException ex)
{
if (HttpContext.Current.IsDebuggingEnabled)
{
throw;
}
HandlerError(helper, contentData, ex);
}
catch (NotImplementedException ex)
{
if (HttpContext.Current.IsDebuggingEnabled)
{
throw;
}
HandlerError(helper, contentData, ex);
}
catch (IOException ex)
{
if (HttpContext.Current.IsDebuggingEnabled)
{
throw;
}
HandlerError(helper, contentData, ex);
}
catch (EPiServerException ex)
{
if (HttpContext.Current.IsDebuggingEnabled)
{
throw;
}
HandlerError(helper, contentData, ex);
}
}