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.
| Parameter | Description |
|---|---|
| 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.
| Parameter | Description |
|---|---|
| viewName | The view to use in the event of error |
| exceptionType | The exception to match |
Properties
| Name | Type | Description |
|---|---|---|
| ViewName | String | Gets the view name to use |
| ExceptionType | Type | Gets the exception type |
Methods
BuildRescueDescriptors() : RescueDescriptor[]
Castle.MonoRail.Framework.Internal.IRescueDescriptorBuilder implementation. Builds the rescue descriptors.