File: Errors.py

package info (click to toggle)
python-gnuplot 1.8-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,272 kB
  • sloc: python: 2,042; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 541 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# $Id: Errors.py 244 2003-04-21 09:44:09Z mhagger $

# Copyright (C) 2001-2003 Michael Haggerty <mhagger@alum.mit.edu>
#
# This file is licensed under the GNU Lesser General Public License
# (LGPL).  See LICENSE.txt for details.

"""Exception types that can be raised by Gnuplot.py."""


class Error(Exception):
    """All our exceptions are derived from this one."""
    pass


class OptionError(Error):
    """Raised for unrecognized option(s)"""
    pass


class DataError(Error):
    """Raised for data in the wrong format"""
    pass