C# 클래스 Alloy.Business.Rendering.ErrorHandlingContentRenderer

Wraps an MvcContentRenderer and adds error handling to ensure that blocks and other content rendered as parts of pages won't crash the entire page if a non-critical exception occurs while rendering it.
Prints an error message for editors so that they can easily report errors to developers.
상속: IContentRenderer
파일 보기 프로젝트 열기: episerver/EPiTranslateFlowDemo

공개 메소드들

메소드 설명
ErrorHandlingContentRenderer ( MvcContentRenderer mvcRenderer ) : System
Render ( HtmlHelper helper, PartialRequest partialRequestHandler, IContentData contentData, TemplateModel templateModel ) : void

Renders the contentData using the wrapped renderer and catches common, non-critical exceptions.

비공개 메소드들

메소드 설명
HandlerError ( HtmlHelper helper, IContentData contentData, Exception renderingException ) : void

메소드 상세

ErrorHandlingContentRenderer() 공개 메소드

public ErrorHandlingContentRenderer ( MvcContentRenderer mvcRenderer ) : System
mvcRenderer MvcContentRenderer
리턴 System

Render() 공개 메소드

Renders the contentData using the wrapped renderer and catches common, non-critical exceptions.
public Render ( HtmlHelper helper, PartialRequest partialRequestHandler, IContentData contentData, TemplateModel templateModel ) : void
helper HtmlHelper
partialRequestHandler PartialRequest
contentData IContentData
templateModel TemplateModel
리턴 void