github.com/enbility/spine-go@v0.7.0/model/result.go (about)

     1  package model
     2  
     3  type ErrorNumberType uint
     4  
     5  const (
     6  	ErrorNumberTypeNoError ErrorNumberType = iota
     7  	ErrorNumberTypeGeneralError
     8  	ErrorNumberTypeTimeout
     9  	ErrorNumberTypeOverload
    10  	ErrorNumberTypeDestinationUnknown
    11  	ErrorNumberTypeDestinationUnreachable
    12  	ErrorNumberTypeCommandNotSupported
    13  	ErrorNumberTypeCommandRejected
    14  	ErrorNumberTypeRestrictedFunctionExchangeCombinationNotSupported
    15  	ErrorNumberTypeBindingIsNecessaryForThisCommand
    16  )
    17  
    18  type ResultDataType struct {
    19  	ErrorNumber *ErrorNumberType `json:"errorNumber,omitempty"`
    20  	Description *DescriptionType `json:"description,omitempty"`
    21  }