Class ErrorException
- Namespace
- Lextm.SharpSnmpLib.Messaging
- Assembly
- SharpSnmpLib.dll
Error exception of #SNMP. Raised when an error message is received.
[DataContract]
public sealed class ErrorException : OperationException, ISerializable
- Inheritance
-
ErrorException
- Implements
- Inherited Members
Constructors
ErrorException()
Creates a ErrorException instance.
public ErrorException()
ErrorException(string)
Creates a ErrorException instance with a specific string.
public ErrorException(string message)
Parameters
message
stringMessage
ErrorException(string, Exception)
Creates a ErrorException instance with a specific string and an Exception.
public ErrorException(string message, Exception inner)
Parameters
Properties
Body
Message body.
public ISnmpMessage? Body { get; }
Property Value
Details
Details on error.
protected override string Details { get; }
Property Value
Methods
Create(string, IPAddress, ISnmpMessage)
Creates a ErrorException.
public static ErrorException Create(string message, IPAddress agent, ISnmpMessage body)
Parameters
message
stringMessage.
agent
IPAddressAgent address.
body
ISnmpMessageError message body.