public static SlcsErrors WrapError(SlcsError error) { var dummy = error ?? throw new ArgumentNullException(nameof(error)); return(new SlcsErrors { errors = new SlcsErrorCollection { error } }); }
public SlcsValidationException(ValidationExceptionSeverity exceptionSeverity, string messageForLogs, SO.SlcsError slcsError) : this(exceptionSeverity, messageForLogs, SO.SlcsErrors.WrapError(slcsError)) { }