Line data Source code
1 : using System;
2 :
3 : namespace Cqrs.WebApi.Formatters.FormMultipart.Infrastructure.Logger
4 : {
5 : public interface IFormDataConverterLogger
6 : {
7 : /// <summary>
8 : /// Logs an error.
9 : /// </summary>
10 : /// <param name="errorPath">The path to the member for which the error is being logged.</param>
11 : /// <param name="exception">The exception to be logged.</param>
12 1 : void LogError(string errorPath, Exception exception);
13 :
14 : /// <summary>
15 : /// Logs an error.
16 : /// </summary>
17 : /// <param name="errorPath">The path to the member for which the error is being logged.</param>
18 : /// <param name="errorMessage">The error message to be logged.</param>
19 1 : void LogError(string errorPath, string errorMessage);
20 :
21 : /// <summary>
22 : /// throw exception if errors found
23 : /// </summary>
24 1 : void EnsureNoErrors();
25 : }
26 : }
|