no-cups
Last change
on this file since e58af05 was
e58af05,
checked in by Jessica B. Hamrick <jhamrick@…>, 12 years ago
|
Implement send-document operation and add threading so that the gutenbach server can play jobs
|
-
Property mode set to
100644
|
File size:
400 bytes
|
Rev | Line | |
---|
[e58af05] | 1 | __all__ = [ |
---|
| 2 | 'InvalidJobException', |
---|
| 3 | 'InvalidPrinterStateException' |
---|
| 4 | ] |
---|
| 5 | |
---|
[776a659] | 6 | class InvalidJobException(Exception): |
---|
| 7 | def __init__(self, jobid): |
---|
| 8 | self.jobid = jobid |
---|
| 9 | |
---|
| 10 | def __str__(self): |
---|
| 11 | return "Job with id '%d' does not exist!" % self.jobid |
---|
| 12 | |
---|
| 13 | class InvalidPrinterStateException(Exception): |
---|
| 14 | def __init__(self, message): |
---|
| 15 | self.message = message |
---|
| 16 | |
---|
| 17 | def __str__(self): |
---|
| 18 | return self.message |
---|
Note: See
TracBrowser
for help on using the repository browser.