File: error.html

package info (click to toggle)
python-pysnmp2 2.0.9-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 476 kB
  • ctags: 471
  • sloc: python: 2,091; makefile: 8
file content (51 lines) | stat: -rw-r--r-- 1,024 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
<HTML>
<HEAD>
<TITLE>PySNMP: Error handling</TITLE>
</HEAD>

<BODY BGCOLOR="#ffffff" TEXT="#000000"
      LINK="#0000bb"  VLINK="#551a8b" ALINK="#ff0000">
<H3>
PySNMP error handling
</H3>
<P>
Almost all of PySNMP modules are designed to report various error conditions
in form of Python exceptions. The <STRONG>pysnmp.error</STRONG> module defines
a base class for all PySNMP exception classes.
</P>
<P>
<DL>
<DT>class <STRONG>General</STRONG>([<STRONG>err_msg</STRONG>])</DT>
<DD>
<P>
Base exception class for all exceptions raised by the The <STRONG>pysnmp.*
</STRONG> modules.
</P>
<P>
The optional <STRONG>err_str</STRONG> argument (string) may be used to store
verbose error message to class instance which may later be returned by
<STRONG>General._str__</STRONG>() method invocation.
</P>
</DD>
</DL>

<HR><STRONG>Subsections</STRONG>

<P>
<UL>
<LI>Objects of the <A HREF="error-objects.html">
<STRONG>error.General</STRONG></A> class
</UL>

</DD>
</DL>
</P>

<HR>

<ADDRESS>
ilya@glas.net
</ADDRESS>

</BODY>
</HTML>