php8.5
Home/ Manual/ reference / snmp/ The SNMPException class

The SNMPException class

Represents an error raised by SNMP. You should not throw a SNMPException from your own code. See Exceptions for more information about Exceptions in PHP.

Intro

Represents an error raised by SNMP. You should not throw a SNMPException from your own code. See Exceptions for more information about Exceptions in PHP.

Class synopsis

extends RuntimeException { }

Properties

code

SNMP library error code. Use Exception::getCode() to access it.

Source: reference/snmp/snmpexception.xml · from the official PHP manual (php/doc-en)