C# Class Castle.MonoRail.Framework.RescueAttribute

Inheritance: System.Attribute, IRescueDescriptorBuilder
Show file Open project: nats/castle-1.0.3-mono

Public Methods

Method Description
BuildRescueDescriptors ( ) : Castle.MonoRail.Framework.Internal.RescueDescriptor[]

IRescueDescriptorBuilder implementation. Builds the rescue descriptors.

RescueAttribute ( String viewName ) : System

Constructs a RescueAttribute with the template name.

RescueAttribute ( String viewName, Type exceptionType ) : System

Constructs a RescueAttribute with the template name and exception type.

Method Details

BuildRescueDescriptors() public method

IRescueDescriptorBuilder implementation. Builds the rescue descriptors.
public BuildRescueDescriptors ( ) : Castle.MonoRail.Framework.Internal.RescueDescriptor[]
return Castle.MonoRail.Framework.Internal.RescueDescriptor[]

RescueAttribute() public method

Constructs a RescueAttribute with the template name.
public RescueAttribute ( String viewName ) : System
viewName String The view to use in the event of error
return System

RescueAttribute() public method

Constructs a RescueAttribute with the template name and exception type.
public RescueAttribute ( String viewName, Type exceptionType ) : System
viewName String The view to use in the event of error
exceptionType System.Type The exception to match
return System