Class ATCommandException
This exception will be thrown when any problem related to the communication with the XBee device occurs.
Implements
Inherited Members
Namespace: XBeeLibrary.Core.Exceptions
Assembly: XBeeLibrary.Core.dll
Syntax
public class ATCommandException : CommunicationException, ISerializable
Constructors
ATCommandException(String, Exception, ATCommandStatus)
Initializes a new instance of the ATCommandException class with a specified error message and the exception that is the cause of this exception.
Declaration
public ATCommandException(string message, Exception innerException, ATCommandStatus atCommandStatus)
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. |
ATCommandStatus | atCommandStatus | The status of the AT command response. |
ATCommandException(String, ATCommandStatus)
Initializes a new instance of the ATCommandException class with a specified error message.
Declaration
public ATCommandException(string message, ATCommandStatus atCommandStatus)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | ThThe error message that explains the reason for this exception. |
ATCommandStatus | atCommandStatus | The status of the AT command response. |
ATCommandException(ATCommandStatus)
Initializes a new instance of the ATCommandException class.
Declaration
public ATCommandException(ATCommandStatus atCommandStatus)
Parameters
Type | Name | Description |
---|---|---|
ATCommandStatus | atCommandStatus |
Properties
CommandStatus
The ATCommandStatus of the exception containing information about the AT command response.
Declaration
public ATCommandStatus CommandStatus { get; }
Property Value
Type | Description |
---|---|
ATCommandStatus |
CommandStatusMessage
The text containing the status of the AT command response.
Declaration
public string CommandStatusMessage { get; }
Property Value
Type | Description |
---|---|
System.String |
Message
The message reported by this exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
System.String |