Table of Contents

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 string

Message

ErrorException(string, Exception)

Creates a ErrorException instance with a specific string and an Exception.

public ErrorException(string message, Exception inner)

Parameters

message string

Message

inner Exception

Inner exception

Properties

Body

Message body.

public ISnmpMessage? Body { get; }

Property Value

ISnmpMessage

Details

Details on error.

protected override string Details { get; }

Property Value

string

Methods

Create(string, IPAddress, ISnmpMessage)

Creates a ErrorException.

public static ErrorException Create(string message, IPAddress agent, ISnmpMessage body)

Parameters

message string

Message.

agent IPAddress

Agent address.

body ISnmpMessage

Error message body.

Returns

ErrorException