Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public SlcsValidationException(ValidationExceptionSeverity exceptionSeverity, string messageForLogs, SO.SlcsError slcsError)
     : this(exceptionSeverity, messageForLogs, SO.SlcsErrors.WrapError(slcsError))
 {
 }