La classe SNMPException

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

Introduction

Représente une erreur lancée par SNMP. Vous ne devez pas lancer une exception SNMPException depuis votre code. Voir les exceptions pour plus d'informations sur les exceptions en PHP.

Synopsis de la classe

classSNMPExceptionextendsRuntimeException {
protectedstring$message = "";
privatestring$string = "";
protectedint$code;
protectedstring$file = "";
protectedint$line;
privatearray$trace = [];
private?Throwable$previous = null;
publicException::__construct(string$message = "", int$code = 0, ?Throwable$previous = null)
finalpublicException::getCode(): int
finalpublicException::getLine(): int
}

Propriétés

code

Code erreur de la bibliothèque SNMP. Utiliser la fonction Exception::getCode() pour y accéder.

To Top