Class PermissionDeniedException
This exception will be thrown when the user does not have the appropriate access to the connection interface. Usually happens when the XBee device is communicating through a serial port.
Inheritance
Implements
Inherited Members
Namespace: XBeeLibrary.Core.Exceptions
Assembly: XBeeLibrary.Core.dll
Syntax
public class PermissionDeniedException : ConnectionException, ISerializable
Constructors
PermissionDeniedException()
Initializes a new instance of the PermissionDeniedException class.
Declaration
public PermissionDeniedException()
PermissionDeniedException(String)
Initializes a new instance of the PermissionDeniedException class with a specified error message.
Declaration
public PermissionDeniedException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | ThThe error message that explains the reason for this exception. |
PermissionDeniedException(String, Exception)
Initializes a new instance of the PermissionDeniedException class with a specified error message and the exception that is the cause of this exception.
Declaration
public PermissionDeniedException(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. |