 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
	Message string
	Kind    Kind
	NestedError error
	HeaderName  string
	HeaderValue string
	TimeoutName  string
	TimeoutValue time.Duration
	PropertyName  string
	PropertyValue any
	ProtocolVersion                string
	SupportedMajorProtocolVersions []int
	InApplication  bool
	IsShallow      bool
	IsRemote       bool
	HTTPStatusCode int
}
    Error represents a structured protocol error.
type Kind ¶
type Kind int
Kind defines the type of error being thrown.
const ( HeaderMissing Kind = iota HeaderInvalid PayloadInvalid Timeout Cancellation ConfigurationInvalid ArgumentInvalid StateInvalid InternalLogicError UnknownError InvocationException ExecutionException MqttError UnsupportedRequestVersion UnsupportedResponseVersion )
The following are the defined error kinds.
 Click to show internal directories. 
   Click to hide internal directories.