MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / errorToStr

Method errorToStr

lib/AsyncHttpClient/src/AsyncHttpClient.cpp:1611–1682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1609}
1610
1611const char* AsyncHttpClient::errorToStr(int8_t error)
1612{
1613 const char* errorDescription = nullptr;
1614
1615 switch (error)
1616 {
1617 case ERR_MEM:
1618 errorDescription = "Out of memory error.";
1619 break;
1620
1621 case ERR_BUF:
1622 errorDescription = "Buffer error.";
1623 break;
1624
1625 case ERR_TIMEOUT:
1626 errorDescription = "Timeout error.";
1627 break;
1628
1629 case ERR_RTE:
1630 errorDescription = "Routing problem.";
1631 break;
1632
1633 case ERR_INPROGRESS:
1634 errorDescription = "Operation in progress.";
1635 break;
1636
1637 case ERR_VAL:
1638 errorDescription = "Illegal value.";
1639 break;
1640
1641 case ERR_WOULDBLOCK:
1642 errorDescription = "Operation would block.";
1643 break;
1644
1645 case ERR_USE:
1646 errorDescription = "Address in use.";
1647 break;
1648
1649 case ERR_ALREADY:
1650 errorDescription = "Connection already established.";
1651 break;
1652
1653 case ERR_CONN:
1654 errorDescription = "Not connected.";
1655 break;
1656
1657 case ERR_IF:
1658 errorDescription = "Low-level netif error.";
1659 break;
1660
1661 case ERR_ABRT:
1662 errorDescription = "Connection aborted.";
1663 break;
1664
1665 case ERR_RST:
1666 errorDescription = "Connection reset.";
1667 break;
1668

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected