public void AddError(string code, string description, ErrorType type, string message = null) { ErrorObject errorObject = new ErrorObject(code, description, type, message); Errors.Add(errorObject); }
public void AddError(string code, string description, ErrorType type, Exception exception) { ErrorObject errorObject = new ErrorObject(code, description, type, exception); Errors.Add(errorObject); }
public ErrorView(string code, string description, ErrorType type, string message) { ErrorObject errorObject = new ErrorObject(code, description, type, message); Errors.Add(errorObject); }