Class InvalidOperatingModeException
This exception will be thrown when performing any action with the XBee device and its operating mode is different than API and API_ESCAPE.
Inheritance
Implements
Inherited Members
Namespace: XBeeLibrary.Core.Exceptions
Assembly: XBeeLibrary.Core.dll
Syntax
public class InvalidOperatingModeException : CommunicationException, ISerializable
Constructors
InvalidOperatingModeException()
Initializes a new instance of the InvalidOperatingModeException class.
Declaration
public InvalidOperatingModeException()
InvalidOperatingModeException(String)
Initializes a new instance of the InvalidOperatingModeException class with a specified error message.
Declaration
public InvalidOperatingModeException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for this exception. |
InvalidOperatingModeException(String, Exception)
Initializes a new instance of the InvalidOperatingModeException class with a specified error message and the exception that is the cause of this exception.
Declaration
public InvalidOperatingModeException(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. |
InvalidOperatingModeException(OperatingMode)
Initializes a new instance of the InvalidOperatingModeException class with the
specified operating mode
.
Declaration
public InvalidOperatingModeException(OperatingMode mode)
Parameters
Type | Name | Description |
---|---|---|
OperatingMode | mode | The unsupported operating mode. |