Home

Castle Stronghold

RescueAttribute API Document

Associates a rescue template with a Castle.MonoRail.Framework.Controller or an action (method). The rescue is invoked in response to some exception during the action processing.

Quick Note

The view must exist in the rescues folder in your view folder

Constructors

RescueAttribute(String viewName)

Constructs a RescueAttribute with the template name.

ParameterDescription
viewName The view to use in the event of error

RescueAttribute(String viewName, Type exceptionType)

Constructs a RescueAttribute with the template name and exception type.

ParameterDescription
viewName The view to use in the event of error
exceptionType The exception to match

Properties

NameTypeDescription
ViewNameString Gets the view name to use
ExceptionTypeType Gets the exception type

Methods

BuildRescueDescriptors() : RescueDescriptor[]

Castle.MonoRail.Framework.Internal.IRescueDescriptorBuilder implementation. Builds the rescue descriptors.

Google
Search WWW Search castleproject.org