AlarmWorkflow.AlarmSource.Fax.FaxAlarmSource.AssertCustomOcrPathExist C# (CSharp) Method

AssertCustomOcrPathExist() private method

private AssertCustomOcrPathExist ( ) : void
return void
        private void AssertCustomOcrPathExist()
        {
            if (string.IsNullOrWhiteSpace(_configuration.OCRSoftwarePath))
            {
                return;
            }

            if (Directory.Exists(_configuration.OCRSoftwarePath))
            {
                return;
            }

            throw new DirectoryNotFoundException(string.Format(Properties.Resources.OcrSoftwareNotFoundError, _ocrSoftware.GetType().Name, _configuration.OCRSoftwarePath));
        }