Class FormDataConverterLogger
Provide a mechanism to log issues and System.Exception data during conversions.
Inheritance
System.Object
FormDataConverterLogger
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cqrs.WebApi.Formatters.FormMultipart.Infrastructure.Logger
Assembly: Cqrs.WebApi.dll
Syntax
public class FormDataConverterLogger : IFormDataConverterLogger
Constructors
FormDataConverterLogger()
Instantiates a new instance of FormDataConverterLogger.
Declaration
public FormDataConverterLogger()
Methods
EnsureNoErrors()
Throw exception if errors found
Declaration
public void EnsureNoErrors()
Implements
GetErrors()
Get all errors recorded.
Declaration
public List<FormDataConverterLogger.LogItem> GetErrors()
Returns
Type | Description |
---|---|
System.Collections.Generic.List<FormDataConverterLogger.LogItem> |
LogError(String, Exception)
Logs an error.
Declaration
public void LogError(string errorPath, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorPath | The path to the member for which the error is being logged. |
System.Exception | exception | The exception to be logged. |
Implements
LogError(String, String)
Logs an error.
Declaration
public void LogError(string errorPath, string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorPath | The path to the member for which the error is being logged. |
System.String | errorMessage | The error message to be logged. |