| 1234567891011121314151617181920212223 |
- using System;
- namespace Abp.Web.Models
- {
- /// <summary>
- /// This interface can be implemented to convert an <see cref="Exception"/> object to an <see cref="ErrorInfo"/> object.
- /// Implements Chain Of Responsibility pattern.
- /// </summary>
- public interface IExceptionToErrorInfoConverter
- {
- /// <summary>
- /// Next converter. If this converter decide this exception is not known, it can call Next.Convert(...).
- /// </summary>
- IExceptionToErrorInfoConverter Next { set; }
- /// <summary>
- /// Converter method.
- /// </summary>
- /// <param name="exception">The exception</param>
- /// <returns>Error info or null</returns>
- ErrorInfo Convert(Exception exception);
- }
- }
|