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. """ 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. """ pass
[docs]class MissingOutput(Exception): """ The output returned by the service does not refer to an existing file. Maybe the job was deleted? """
[docs]class CommunicationError(Exception): """ There was an error communicating with the service. """ pass