func (err ErrCode) Error() string {
	return err.String()
}
Error implements the error interface
package knxnet
import "fmt"
const (
	NoError = 0x00
	ErrHostProtocolType = 0x01
	ErrVersionNotSupported = 0x02
	ErrSequenceNumber = 0x04
	ErrConnectionID = 0x21
	ErrConnectionType = 0x22
	ErrConnectionOption = 0x23
	ErrNoMoreConnections = 0x24
	ErrNoMoreUniqueConnections = 0x25
	ErrDataConnection = 0x26
	ErrKNXConnection = 0x27
	ErrTunnellingLayer = 0x29
)
type ErrCode uint8
func (err ErrCode) String() string {
	switch err {
	case NoError:
		return "No error"
	case ErrHostProtocolType:
		return "Host protocol is not supported"
	case ErrVersionNotSupported:
		return "KNXnet/IP version is not supported"
	case ErrSequenceNumber:
		return "Sequence number is out-of-order"
	case ErrConnectionID:
		return "No active data connection"
	case ErrConnectionType:
		return "Unsupported connection type"
	case ErrConnectionOption:
		return "Unsupported connection option"
	case ErrNoMoreConnections:
		return "No more connections available"
	case ErrNoMoreUniqueConnections:
		return "No more unique connections available"
	case ErrDataConnection:
		return "Data connection error"
	case ErrKNXConnection:
		return "KNX connection error"
	case ErrTunnellingLayer:
		return "Unsupported tunnelling layer"
	default:
		return fmt.Sprintf("Unknown error code %#x", err)
	}
}