File: exceptions.py

package info (click to toggle)
python-easysnmp 0.2.6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 692 kB
  • sloc: ansic: 3,735; python: 1,410; makefile: 161
file content (59 lines) | stat: -rw-r--r-- 1,206 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from __future__ import unicode_literals


class EasySNMPError(Exception):
    """The base Easy SNMP exception which covers all exceptions raised."""

    pass


class EasySNMPConnectionError(EasySNMPError):
    """Indicates a problem connecting to the remote host."""

    pass


class EasySNMPTimeoutError(EasySNMPConnectionError):
    """Raised when an SNMP request times out."""

    pass


class EasySNMPUnknownObjectIDError(EasySNMPError):
    """Raised when a nonexistent OID is requested."""

    pass


class EasySNMPNoSuchNameError(EasySNMPError):
    """
    Raised when an OID is requested which may be an invalid object name
    or invalid instance (only applies to SNMPv1).
    """

    pass


class EasySNMPNoSuchObjectError(EasySNMPError):
    """
    Raised when an OID is requested which may have some form of existence but
    is an invalid object name.
    """

    pass


class EasySNMPNoSuchInstanceError(EasySNMPError):
    """
    Raised when a particular OID index requested from Net-SNMP doesn't exist.
    """

    pass


class EasySNMPUndeterminedTypeError(EasySNMPError):
    """
    Raised when the type cannot be determined when setting the value of an OID.
    """

    pass