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

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

Remove MalformedIPPRequestException from server/exceptions.py

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