BacnetProtocolException class

Exception thrown when a BACnet Error PDU is received.

Contains the error class and code from the BACnet protocol, see BacnetErrorClass and BacnetErrorCode.

Inheritance

Constructors

BacnetProtocolException(String message, {required BacnetErrorClass errorClass, required BacnetErrorCode errorCode, int? firstFailedElement, BacnetFailedCovSubscription? firstFailedSubscription})
Creates a protocol exception with error details.
const

Properties

errorClass → BacnetErrorClass
BACnet error class.
final
errorCode → BacnetErrorCode
BACnet error code.
final
firstFailedElement → int?
For CreateObject, AddListElement and RemoveListElement: the position (1 based) of the initial value or list element the device rejected, or 0 when the request failed for another reason; null for other services.
final
firstFailedSubscription → BacnetFailedCovSubscription?
For SubscribeCOVPropertyMultiple: the first subscription the device refused, if it names one.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
Human-readable error message.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited