source: server/lib/server/exceptions.py @ 776a659

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

Move server-related stuff into server module; add job, printer, and exceptions

  • 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.