Skip to content

4. New error processors ?

franciscoserdio edited this page Aug 8, 2016 · 1 revision

Want other ways of processing your error?

Simple. Just implement this interface

/// <summary>
/// Contract for the object which process an DataException while the applications errors
/// </summary>
public interface IErrorProcessor
{
    /// <summary>
    /// Process the Exception ex
    /// </summary>
    /// <param name="source">The source of the error to process</param>
    /// <param name="ex">The error to process</param>
    /// <param name="idApplication">The Id of the application</param>
    /// <param name="pageSource">The page source of the error</param>
    /// <returns>The state of processing while deal with the error</returns>
    eErrorState ProcessError(string source, Exception ex, string idApplication, string pageSource);
}

Clone this wiki locally