File: errno.rst

package info (click to toggle)
pycares 5.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,180 kB
  • sloc: ansic: 31,201; cpp: 13,236; python: 3,043; makefile: 250; sh: 146
file content (23 lines) | stat: -rw-r--r-- 526 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
.. _errno:


.. currentmodule:: pycares


======================================================
:py:mod:`pycares.errno` --- Error constant definitions
======================================================


This module contains the defined error constants from c-ares.

.. py:attribute:: pycares.errno.errorcode

    Mapping (code, string) with c-ares error codes.

.. py:function:: pycares.errno.strerror(errorno)

    :param int errorno: Error number.

    Get the string representation of the given c-ares error number.