Namespace: IPS7Lnk.Advanced
Assemblies: IPS7LnkNet.Advanced.dll
The exception that is thrown when a driver operation has failed.
C#
[Serializable] public class PlcException : Exception, ISerializable, _Exception
Inheritance Object › Exception › PlcException
Attributes SerializableAttribute
Implements Serialization.ISerializable, InteropServices._Exception
Name | Description |
---|---|
PlcException | Initializes a new instance of the PlcException class with default properties. |
PlcException(PlcStatusCode) | Initializes a new instance of the PlcException class with the specified code . |
PlcException(PlcStatusCode, Int32) | Initializes a new instance of the PlcException class with the specified code and socketCode . |
PlcException(PlcStatusCode, Int32, Exception) | Initializes a new instance of the PlcException class with the specified code , socketCode and inner exception. |
PlcException(PlcStatusCode, Int32, Exception, PlcType) | Initializes a new instance of the PlcException class with the specified code , socketCode , inner exception and the type affected. |
PlcException(Serialization.SerializationInfo, Serialization.StreamingContext) | Initializes a new instance of the PlcException class with serialized data. |
Name | Description |
---|---|
Code | Gets the according PlcStatusCode for the ErrorCode. |
ErrorCode | Gets the error code of the PlcException. |
SocketCode | Gets the error code of the recent performed socket operation if ErrorCode does refer to an error based on a socket operation. |
Type | Gets the PlcType which was in operation while the new current exception was produced. The missleading type information of the type can be also the reason. |
Name | Description |
---|---|
GetObjectData(Serialization.SerializationInfo, Serialization.StreamingContext) | Sets the Serialization.SerializationInfo with information about the exception. |