source: server/lib/gutenbach/server/exceptions.py @ df51061

no-cups
Last change on this file since df51061 was df51061, checked in by Jessica B. Hamrick <jhamrick@…>, 13 years ago

Create gutenbach module

  • Property mode set to 100644
File size: 319 bytes
Line 
1class InvalidJobException(Exception):
2    def __init__(self, jobid):
3        self.jobid = jobid
4
5    def __str__(self):
6        return "Job with id '%d' does not exist!" % self.jobid
7
8class InvalidPrinterStateException(Exception):
9    def __init__(self, message):
10        self.message = message
11
12    def __str__(self):
13        return self.message
Note: See TracBrowser for help on using the repository browser.