public SlcsValidationException(ValidationExceptionSeverity exceptionSeverity, string messageForLogs, SO.SlcsErrors slcsErrors) { SlcsErrors = slcsErrors ?? throw new ArgumentNullException("slcsErrors"); if (String.IsNullOrWhiteSpace(messageForLogs)) { throw new ArgumentNullException("messageForLogs"); } MessageForLogs = messageForLogs; ExceptionSeverity = exceptionSeverity; }
public SlcsValidationException(ValidationExceptionSeverity exceptionSeverity, string messageForLogs, SO.SlcsError slcsError) : this(exceptionSeverity, messageForLogs, SO.SlcsErrors.WrapError(slcsError)) { }