SNMP::getError

Get last error message

&reftitle.description; public `string` `SNMP::getError`

Returns string with error from last SNMP request.

&reftitle.returnvalues;

String describing error from last SNMP request.

&reftitle.examples;

### `SNMP::getError` example

    <?php
    $session = new SNMP(SNMP::VERSION_2c, '127.0.0.1', 'boguscommunity');
    var_dump(@$session->get('.1.3.6.1.2.1.1.1.0'));
    var_dump($session->getError());
    ?>

&example.outputs;

    bool(false)
    string(26) "No response from 127.0.0.1"

&reftitle.seealso;

- `SNMP::getErrno`