diff --git a/docs/reference.rst b/docs/reference.rst index 45f83ad36f..d4c70dd7bd 100644 --- a/docs/reference.rst +++ b/docs/reference.rst @@ -169,8 +169,6 @@ Exceptions parsl.providers.errors.ScaleOutFailed parsl.providers.errors.SchedulerMissingArgs parsl.providers.errors.ScriptPathError - parsl.channels.errors.ChannelError - parsl.channels.errors.FileCopyException parsl.executors.high_throughput.errors.WorkerLost parsl.executors.high_throughput.interchange.ManagerLost parsl.serialize.errors.DeserializationError diff --git a/parsl/channels/errors.py b/parsl/channels/errors.py deleted file mode 100644 index effaea9548..0000000000 --- a/parsl/channels/errors.py +++ /dev/null @@ -1,30 +0,0 @@ -''' Exceptions raise by Apps. -''' -from parsl.errors import ParslError - - -class ChannelError(ParslError): - """ Base class for all exceptions - - Only to be invoked when only a more specific error is not available. - """ - def __init__(self, reason: str, e: Exception, hostname: str) -> None: - self.reason = reason - self.e = e - self.hostname = hostname - - def __str__(self) -> str: - return "Hostname:{0}, Reason:{1}".format(self.hostname, self.reason) - - -class FileCopyException(ChannelError): - ''' File copy operation failed - - Contains: - reason(string) - e (paramiko exception object) - hostname (string) - ''' - - def __init__(self, e: Exception, hostname: str) -> None: - super().__init__("File copy failed due to {0}".format(e), e, hostname)