Наследование: WinSWException
Пример #1
0
 private void HandleMappingError(SharedDirectoryMapperConfig config, MapperException ex)
 {
     Logger.Error("Mapping of " + config.Label + " failed. STDOUT: " + ex.Process.StandardOutput.ReadToEnd()
         + " \r\nSTDERR: " + ex.Process.StandardError.ReadToEnd(), ex);
     throw new ExtensionException(Descriptor.Id, DisplayName + ": Mapping of " + config.Label + "failed", ex);
 }
Пример #2
0
 private void HandleMappingError(SharedDirectoryMapperConfig config, MapperException ex)
 {
     Logger.Error("Mapping of " + config.Label + " failed. STDOUT: " + ex.Process.StandardOutput.ReadToEnd()
                  + " \r\nSTDERR: " + ex.Process.StandardError.ReadToEnd(), ex);
     throw new ExtensionException(Descriptor.Id, DisplayName + ": Mapping of " + config.Label + "failed", ex);
 }
Пример #3
0
        private void HandleMappingError(SharedDirectoryMapperConfig config, IEventWriter eventWriter, MapperException ex)
        {
            String prefix = "Mapping of " + config.Label + " ";

            eventWriter.LogEvent(prefix + "STDOUT: " + ex.Process.StandardOutput.ReadToEnd(), EventLogEntryType.Information);
            eventWriter.LogEvent(prefix + "STDERR: " + ex.Process.StandardError.ReadToEnd(), EventLogEntryType.Information);

            throw new ExtensionException(Descriptor.Id, DisplayName + ": " + prefix + "failed", ex);
        }