File: errors.py

package info (click to toggle)
python-flanker 0.9.15-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,976 kB
  • sloc: python: 9,308; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 343 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class MimeError(Exception):
    pass


class DecodingError(MimeError):
    """Thrown when there is an encoding error."""

    def __str__(self):
        return MimeError.__str__(self)[:256]


class EncodingError(MimeError):
    """Thrown when there is an decoding error."""

    def __str__(self):
        return MimeError.__str__(self)[:256]