File: _exceptions.py

package info (click to toggle)
python-wn 1.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,100 kB
  • sloc: python: 8,429; xml: 566; sql: 238; makefile: 12
file content (30 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (2)
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
26
27
28
29
30
class Error(Exception):
    """Generic error class for invalid wordnet operations."""

    # reset the module so the user sees the public name
    __module__ = "wn"


class DatabaseError(Error):
    """Error class for issues with the database."""

    __module__ = "wn"


class ConfigurationError(Error):
    """Raised on invalid configurations."""

    __module__ = "wn"


class ProjectError(Error):
    """Raised when a project is not found or on errors defined in the index."""

    __module__ = "wn"


class WnWarning(Warning):
    """Generic warning class for dubious wordnet operations."""

    # reset the module so the user sees the public name
    __module__ = "wn"