SignalingErrorCode

DESCRIPTION

Error codes used by the SignalingError. Since the signaling protocol specifies error codes as strings, these are converted by the SignalingError constructor. The Nabto SDK will only use error codes listed here, however, when sending errors from the application, any string can be used.

  • DECODE_ERROR: A message could not be decoded due to invalid JSON or missing JSON fields.
  • VERIFICATION_ERROR: A message could not be verified.
  • CHANNEL_CLOSED: Received when the client closed the channel, and is sent when the device closed the channel.
  • CHANNEL_NOT_FOUND: Sent to the client if it tried sending data on a channel which does not exist.
  • NO_MORE_CHANNELS: Sent to the client if it attempted to create a channel but the device is out of resources.
  • ACCESS_DENIED: Sent if the client tries to access a resource with insufficient permissions.
  • INTERNAL_ERROR: An unknown error occured. Check the log for details.

DECLARATION

enum class SignalingErrorCode : std::uint8_t