package netsnmp

  1. Overview
  2. Docs
An interface to the Net-SNMP client library

Install

Dune Dependency

Authors

Maintainers

Sources

netsnmp-v0.14.0.tar.gz
sha256=91a33e407dd1f5dc42ce5aaa5a65e0d65e19b454a129603a89c31d1461abe68f
md5=ae0c0a55bf466f9eca96543f4f2578e4

doc/src/netsnmp.raw/netsnmp_exceptions.ml.html

Source file netsnmp_exceptions.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
exception Not_found of string
exception System_error of string
exception Out_of_memory
exception Response_error of (Pdu_error.t * string)
exception General_error of (int * Netsnmp_error.t * string) (* os_err, snmp_error, error_string *)
exception Request_timeout

let () =
  Callback.register_exception "Netsnmp_error_not_found" (Not_found "");
  Callback.register_exception "Netsnmp_error_system" (System_error "");
  Callback.register_exception "Netsnmp_out_of_memory" Out_of_memory;
  Callback.register_exception "Netsnmp_response_error"
    (Response_error (Pdu_error.SNMP_ERR_NOERROR, ""));
  Callback.register_exception "Netsnmp_general_error"
    (General_error (0, Netsnmp_error.SNMPERR_SUCCESS, ""));
  Callback.register_exception "Netsnmp_request_timeout" Request_timeout
OCaml

Innovation. Community. Security.