Source code for cerise_client.errors

[docs]class ServiceNotFound(Exception): """ The given service does not exist on this machine. Either it was never created, or it was destroyed, or the Docker container running it was destroyed by an outside influence. """ pass
[docs]class ServiceAlreadyExists(Exception): """ A service with the given name already exists on this machine, so another one cannot be created. """ pass
[docs]class PortNotAvailable(Exception): """ The requested port is occupied by another service, or by some other program that has bound it on localhost. Either stop the blocking service or program, or try again with a different port number. """ pass
[docs]class JobNotFound(Exception): """ The given job does not exist on this service. Either it never existed because it hasn't been submitted yet (did you call job.run()?), or it was deleted. """ pass
[docs]class JobAlreadyExists(Exception): """ You tried to create a job with a name that already existed on this service. Jobs must have a unique name, and cannot be submitted twice. """ pass
[docs]class InvalidJob(Exception): """ You submitted an invalid job. Did you forget to add a workflow? """ pass
[docs]class UnknownInput(Exception): """ You tried to set the value for an input that is not in the workflow for the job you are creating. Did you add the workflow first? """ pass
[docs]class NoPrimaryFile(Exception): """ You tried to set a secondary file for an input for which no primary file is set. Use add_input_file() first, then add_secondary_file() with the same input name. """
[docs]class MissingOutput(Exception): """ The output returned by the service does not refer to an existing file. Maybe the job was deleted? """
[docs]class FileNotFound(Exception): """ The file you tried to set as a workflow input was not found. Is the path correct? Does the file exist? """
[docs]class CommunicationError(Exception): """ There was an error communicating with the service. """ pass