public ErrorsException(List <ErrorsTO> errors) : base() { ErrorResponse = new ErrorsResponseTO { Errors = errors }; }
public NotFoundException(string code, string message) : base(code, message) { ErrorResponse = new ErrorsResponseTO { Errors = new List <ErrorsTO>() { new ErrorsTO() { Field = code, Validation = message, } } }; }