Module error

Module error 

Source
Expand description

Library error types.

Structs§

AckError
Response to the publish request with QoS>0 with reason >= 0x80.
AuthError
Extended authorization was refused by the broker. Accesses AUTH packet with reason value greater or equal 0x80.
ConnectError
Connection could not be established with the server. Accesses CONNACK packet with reason value greater or equal 0x80.
ContextExited
Error indicating that client Context has exited (run has returned).
Disconnected
Broker has terminated the connection by sending DISCONNECT packet. Accesses data in DISCONNECT packet.
HandleClosed
Error indicating that ContextHandle object required for completing the operation was dropped.
InsufficientBufferSize
Size of the supplied buffer is too small.
InternalError
Struct representing internal errors. In general, these should not happen and should be trated as an implementation defect.
InvalidEncoding
Invalid byte encoding was found.
InvalidPacketHeader
Header of the incoming packet is invalid.
InvalidPacketSize
Size of the incoming packet is not valid.
InvalidPropertyId
Invalid property identifier found in an incoming packet.
InvalidPropertyLength
Declared propery length of the incoming packet is not valid.
InvalidValue
Invalid value was supplied.
MandatoryPropertyMissing
Mandatory property is missing in the packet.
MaximumPacketSizeExceeded
Client attemps to send more data to the server than maximum packet size property allows.
QuotaExceeded
Trying to send more QoS>0 messages than broker allowed in CONNACK receive_maximum.
SocketClosed
Socket was closed.
UnexpectedProperty
Found property that is not valid for the incoming packet.
ValueExceedesMaximum
Value exceedes the allowed maximum.
ValueIsZero
Unaccepted value 0 was supplied.

Enums§

CodecError
General error type for the packet codec.
ConversionError
General error type for conversion errors.
MqttError
Main library error type. All other errors are converted to this type before being returned to the user.
PropertyError
General error type for property errors.

Type Aliases§

PubackError
QoS==1 publish failed. Accesses PUBACK packet with reason value greater or equal 0x80.
PubcompError
QoS==2 publish failed. Accesses PUBCOMP packet with reason value greater or equal 0x80.
PubrecError
QoS==2 publish failed. Accesses PUBREC packet with reason value greater or equal 0x80.