printer

printer.connection_error

exception lsserver.printing.errors.PrinterConnectionError(message=None, **kwargs)

Bases: lscore.errors.server_errors.BadGatewayError, lsserver.printing.errors.PrinterError

HTTP code: 502 Bad Gateway
Example: Printer server cannot be reached. Please check your current setup such as local network settings and /etc/hosts file.
type = 'printer.connection_error'
localizable_message = <LocalizableMessage key='printer.connection_error' ...>

printer.print_queue_add_failure

exception lsserver.printing.errors.PrinterQueueAddFailure(queue_name, display_name, printer_message=None, caused_by_error=None)

Bases: lscore.errors.server_errors.ServerError, lsserver.printing.errors.PrinterError

HTTP code: 500 Internal Server Error
Example: Unable to add the job to print queue “None.”
type = 'printer.print_queue_add_failure'
localizable_message = <LocalizableMessage key='printer.print_queue_add_failure' ...>

printer.print_queue_not_found

exception lsserver.printing.errors.PrinterQueueNotFound(queue_name)

Bases: lscore.errors.server_errors.NotFound, lsserver.printing.errors.PrinterError

HTTP code: 404 Not Found
Example: Print queue None not found.
type = 'printer.print_queue_not_found'
localizable_message = <LocalizableMessage key='printer.print_queue_not_found' ...>

printer.unexpected_error

exception lsserver.printing.errors.CupsError(queue_name, message=None, caused_by_error=None)

Bases: lscore.errors.server_errors.BadGatewayError, lsserver.printing.errors.PrinterError

HTTP code: 502 Bad Gateway
Example: Unexpected error: None
type = 'printer.unexpected_error'
localizable_message = <LocalizableMessage key='printer.unexpected_error' ...>