Class CommunicationException
This exception will be thrown when any problem related to the communication with the XBee device occurs.
Inheritance
Implements
Inherited Members
Namespace: XBeeLibrary.Core.Exceptions
Assembly: XBeeLibrary.Core.dll
Syntax
public class CommunicationException : XBeeException, ISerializable
Constructors
CommunicationException()
Initializes a new instance of the CommunicationException class.
Declaration
public CommunicationException()
CommunicationException(Exception)
Initializes a new instance of the CommunicationException class with the exception that is the cause of this exception.
Declaration
public CommunicationException(Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |
CommunicationException(String)
Initializes a new instance of the CommunicationException class with a specified error message.
Declaration
public CommunicationException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | ThThe error message that explains the reason for this exception. |
CommunicationException(String, Exception)
Initializes a new instance of the CommunicationException class with a specified error message and the exception that is the cause of this exception.
Declaration
public CommunicationException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | ThThe error message that explains the reason for this exception. |
System.Exception | innerException | The exception that is the cause of the current exception, or a null reference if no inner exception is specified. |