Class SlaveException

Represents slave errors that occur during communication.

Inheritance

System.Object

System.Exception

SlaveException

Implements

System.Runtime.Serialization.ISerializable

System.Runtime.InteropServices._Exception

Inherited Members

System.Exception.GetBaseException()

System.Exception.ToString()

System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)

System.Exception.GetType()

System.Exception.Data

System.Exception.InnerException

System.Exception.TargetSite

System.Exception.StackTrace

System.Exception.HelpLink

System.Exception.Source

System.Exception.HResult

System.Exception.SerializeObjectState

System.Object.Equals(System.Object)

System.Object.Equals(System.Object, System.Object)

System.Object.ReferenceEquals(System.Object, System.Object)

System.Object.GetHashCode()

System.Object.MemberwiseClone()

Namespace: NModbus
Assembly: NModbus.dll
Syntax
public class SlaveException : Exception, ISerializable, _Exception

Constructors

| Improve this Doc View Source

SlaveException()

Declaration
| Improve this Doc View Source

SlaveException(String)

Declaration
public SlaveException(string message)
Parameters
Type Name Description
System.String message

The message.

| Improve this Doc View Source

SlaveException(String, Exception)

Declaration
public SlaveException(string message, Exception innerException)
Parameters
Type Name Description
System.String message

The message.

System.Exception innerException

The inner exception.

Properties

| Improve this Doc View Source

FunctionCode

Gets the response function code that caused the exception to occur, or 0.

Declaration
public byte FunctionCode { get; }
Property Value
Type Description
System.Byte

The function code.

| Improve this Doc View Source

Message

Gets a message that describes the current exception.

Declaration
public override string Message { get; }
Property Value
Type Description
System.String

The error message that explains the reason for the exception, or an empty string.

Overrides

System.Exception.Message

| Improve this Doc View Source

SlaveAddress

Gets the slave address, or 0.

Declaration
public byte SlaveAddress { get; }
Property Value
Type Description
System.Byte

The slave address.

| Improve this Doc View Source

SlaveExceptionCode

Gets the slave exception code, or 0.

Declaration
public byte SlaveExceptionCode { get; }
Property Value
Type Description
System.Byte

The slave exception code.

Implements

System.Runtime.Serialization.ISerializable

System.Runtime.InteropServices._Exception