no-cups
Last change
on this file since b2e077a was
b2e077a,
checked in by Jessica B. Hamrick <jhamrick@…>, 12 years ago
|
Refactor code to handle the operations a little bit more logically
|
-
Property mode set to
100644
|
File size:
483 bytes
|
Line | |
---|
1 | class 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 | |
---|
8 | class InvalidPrinterStateException(Exception): |
---|
9 | def __init__(self, message): |
---|
10 | self.message = message |
---|
11 | |
---|
12 | def __str__(self): |
---|
13 | return self.message |
---|
14 | |
---|
15 | class MalformedIPPRequestException(Exception): |
---|
16 | def __init__(self, message): |
---|
17 | self.message = message |
---|
18 | |
---|
19 | def __str__(self): |
---|
20 | return self.message |
---|
Note: See
TracBrowser
for help on using the repository browser.