PageRenderTime 5ms CodeModel.GetById 1ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/LinFu.AOP.Interfaces/IExceptionHandlerInfo.cs

http://github.com/philiplaureano/LinFu
C# | 37 lines | 11 code | 4 blank | 22 comment | 0 complexity | 51b7dd70ed9e5cd9f1aefa2b09a590d2 MD5 | raw file
 1using System;
 2
 3namespace LinFu.AOP.Interfaces
 4{
 5    /// <summary>
 6    ///     Represents a type that describes the context of a thrown exception.
 7    /// </summary>
 8    public interface IExceptionHandlerInfo
 9    {
10        /// <summary>
11        ///     Gets the value indicating the thrown exception.
12        /// </summary>
13        /// <value>The thrown exception.</value>
14        Exception Exception { get; }
15
16        /// <summary>
17        ///     Gets the value indicating the <see cref="IInvocationInfo" /> instance that describes the context of the method
18        ///     that threw the exception.
19        /// </summary>
20        /// <value>The <see cref="IInvocationInfo" /> instance.</value>
21        IInvocationInfo InvocationInfo { get; }
22
23        /// <summary>
24        ///     Gets or sets the value indicating the return value that will be used in place of the original return value if
25        ///     the exception is intercepted by an <see cref="IExceptionHandler" /> instance.
26        /// </summary>
27        /// <value>The method return value.</value>
28        object ReturnValue { get; set; }
29
30        /// <summary>
31        ///     Gets or sets the value indicating whether or not the exception should be rethrown after
32        ///     the <see cref="IExceptionHandler" /> handles the given exception.
33        /// </summary>
34        /// <value>This should be <c>true</c> if the exception should be rethrown, otherwise, it must be <c>false</c>.</value>
35        bool ShouldSkipRethrow { get; set; }
36    }
37}