Exceptions C++ Module¶
-
class ConnectionErrorBase : public GenericErrorBase¶
Exception class for SNMP connection errors.
This class represents an error that occurs during an SNMP connection attempt. It inherits from the GenericErrorBase base class.
- Param message:
A descriptive error message.
Public Functions
-
ConnectionErrorBase(std::string const &message)¶
-
class GenericErrorBase : public std::exception¶
Exception class for handling SNMP errors in the ezsnmp library.
This class extends the standard std::exception class to provide detailed error messages specific to SNMP operations.
Subclassed by ConnectionErrorBase, NoSuchInstanceErrorBase, NoSuchInstanceErrorBase, NoSuchNameErrorBase, NoSuchNameErrorBase, NoSuchObjectErrorBase, PacketErrorBase, PacketErrorBase, ParseErrorBase, ParseErrorBase, TimeoutErrorBase, UndeterminedTypeErrorBase, UndeterminedTypeErrorBase, UnknownObjectIDErrorBase
Public Functions
-
GenericErrorBase(std::string const &message)¶
-
virtual char const *what() const noexcept override¶
Private Members
-
std::string m_msg¶
-
GenericErrorBase(std::string const &message)¶
-
class NoSuchInstanceErrorBase : public GenericErrorBase, public GenericErrorBase¶
Exception class for handling SNMP “No Such Instance” errors.
This exception is thrown when an SNMP operation encounters a “No Such Instance” error, indicating that the requested instance does not exist.
Public Functions
-
NoSuchInstanceErrorBase(std::string const &message)¶
-
NoSuchInstanceErrorBase(std::string const &message)¶
-
class NoSuchNameErrorBase : public GenericErrorBase, public GenericErrorBase¶
Exception class for handling SNMP “No Such Name” errors.
This class represents an error that occurs when an SNMP operation encounters a “No Such Name” error, indicating that the requested object does not exist.
Public Functions
-
NoSuchNameErrorBase(std::string const &message)¶
-
NoSuchNameErrorBase(std::string const &message)¶
-
class NoSuchObjectErrorBase : public GenericErrorBase¶
Exception class for handling SNMP “No Such Object” errors.
This exception is thrown when an SNMP operation encounters a “No Such Object” error.
- Param message:
A detailed error message.
Public Functions
-
NoSuchObjectErrorBase(std::string const &message)¶
-
class PacketErrorBase : public GenericErrorBase, public GenericErrorBase¶
Exception class for handling SNMP packet errors.
This exception is thrown when an error occurs related to SNMP packet processing.
- Param message:
A descriptive error message.
Public Functions
-
PacketErrorBase(std::string const &message)¶
-
class ParseErrorBase : public GenericErrorBase, public GenericErrorBase¶
Exception class for handling SNMP parse errors.
This exception is thrown when an error occurs while parsing SNMP command line arguments.
- Param message:
A descriptive error message.
Public Functions
-
ParseErrorBase(std::string const &message)¶
-
class TimeoutErrorBase : public GenericErrorBase¶
Exception class for handling SNMP timeout errors.
This class represents an error that occurs when an SNMP operation times out. It inherits from GenericErrorBase.
- Param message:
A descriptive message about the timeout error.
Public Functions
-
TimeoutErrorBase(std::string const &message)¶
-
class UndeterminedTypeErrorBase : public GenericErrorBase, public GenericErrorBase¶
Exception class for undetermined SNMP type errors.
This exception is thrown when an SNMP type cannot be determined.
- Param message:
A descriptive error message.
Public Functions
-
UndeterminedTypeErrorBase(std::string const &message)¶
-
class UnknownObjectIDErrorBase : public GenericErrorBase¶
Exception class for unknown SNMP Object ID errors.
This exception is thrown when an unknown SNMP Object ID is encountered.
This class inherits from GenericErrorBase and provides additional information about the error through its message.
- Param message:
A string containing the error message.
Public Functions
-
UnknownObjectIDErrorBase(std::string const &message)¶