C# 클래스 Castle.MonoRail.Framework.Extensions.ExceptionChaining.ExceptionChainingExtension

This extension allow one to perform one or more steps in response to an exception threw by an action. IExceptionHandler
To successfully install this extension you must register it on the extensions node and the handlers within the exception node: <monorail> <extensions> <extension type="Castle.MonoRail.Framework.Extensions.ExceptionChaining.ExceptionChainingExtension, Castle.MonoRail.Framework" /> </extensions> <exception> <exceptionHandler type="Type name that implements IExceptionHandler" /> <exceptionHandler type="Type name that implements IExceptionHandler" /> </exception> </monorail>

Controllers can request IExceptionProcessor through IServiceProvider and invoke the handlers to process an exception

(); exProcessor.ProcessException(ex); RenderView("CouldNotBuyMercedes"); } } ]]>
상속: IMonoRailExtension, IExceptionProcessor
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
ProcessException ( Exception exception ) : void

Initiates the ExceptionChainingExtension manualy

Service ( IServiceProvider provider ) : void

Services the specified provider.

SetExtensionConfigNode ( XmlNode node ) : void

Gives to the extension implementor a chance to read attributes and child nodes of the extension node

비공개 메소드들

메소드 설명
InstallExceptionHandler ( XmlNode node, String typeName ) : void

Installs the exception handler.

OnException ( IRailsEngineContext context ) : void

Called when an exception happens.

메소드 상세

ProcessException() 공개 메소드

Initiates the ExceptionChainingExtension manualy
public ProcessException ( Exception exception ) : void
exception System.Exception The exception to process
리턴 void

Service() 공개 메소드

Services the specified provider.
public Service ( IServiceProvider provider ) : void
provider IServiceProvider The provider.
리턴 void

SetExtensionConfigNode() 공개 메소드

Gives to the extension implementor a chance to read attributes and child nodes of the extension node
public SetExtensionConfigNode ( XmlNode node ) : void
node XmlNode The node that defines the MonoRail extension
리턴 void