~epidermis/epidermis/releases

« back to all changes in this revision

Viewing changes to epidermis/ep_exceptions.py

  • Committer: David D Lowe
  • Date: 2009-05-31 18:58:14 UTC
  • mfrom: (1.1.74 trunk)
  • Revision ID: daviddlowe.flimm@gmail.com-20090531185814-qst7hvqhp2ihr7f9
0.2.4 release

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
        self.filename = filename
10
10
        self.pigment = pigment
11
11
    def __str__(self):
12
 
        return "File not found: \"%s\"" % self.filename
 
12
        return "File not found: \"%s\" pigment: \"%s\"" % \
 
13
        (self.filename, str(self.pigment))
13
14
 
14
15
class PreviewFileNotFoundException(FileNotFoundException):
15
16
    def __str__(self):
16
 
        return "Preview file not found: \"%s\"" % self.filename
 
17
        return "Preview file not found: \"%s\" pigment: \"%s\"" % \
 
18
        (self.filename, str(self.pigment))
17
19
 
18
20
class AttachmentNotFoundException(FileNotFoundException):
19
21
    def __str__(self):
20
 
        return "Attachment not found: \"%s\"" % self.filename
 
22
        return "Attachment not found: \"%s\" pigment: \"%s\"" % \
 
23
        (self.filename, str(self.pigment))
21
24
 
22
25
class PigmentNotFoundException(Exception):
23
26
    def __init__(self, pigment, pigmentType, directories=None):