ErrorResult

data class ErrorResult(val code: Int?, val error_code: Int?, val message: String?)

This class holds the error code, an additional error-specific code, and an error message to provide detailed information about what went wrong during the operation. It is typically used to communicate error responses between different components or to report errors from network calls or Bluetooth operations.

Constructors

Link copied to clipboard
constructor(code: Int?, error_code: Int?, message: String?)

Properties

Link copied to clipboard
val code: Int?

A general error code that indicates the type of error encountered.

Link copied to clipboard

A specific error code that provides detailed information about the error.

Link copied to clipboard

A human-readable message describing the error,