Documentation
¶
Overview ¶
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Copyright (c) Microsoft Corporation. Licensed under the MIT License.
Index ¶
- func Context(ctx context.Context, msg string) error
- func FromUserProp(user map[string]string) error
- func IsNoReturn(err error) (bool, error)
- func Mqtt(ctx context.Context, msg string, ack *mqtt.Ack, err error) error
- func NewUUID() (string, error)
- func NoReturn(err error) error
- func Normalize(err error, msg string) error
- func Return(err error, logger log.Logger, shallow bool) error
- func ToUserProp(err error) map[string]string
- func ValidateNonNil(args map[string]any) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromUserProp ¶
func IsNoReturn ¶
Get whether this error is returnable, and the underlying error.
func Mqtt ¶ added in v0.3.0
Translate a github.com/Azure/iot-operations-sdks/go/internal/mqtt ack/err return to an SDK error. An actual error indicates a failure in the client library, whereas a response with a failure code indicates an issue in the MQTT request.
func Return ¶
Prepare the error for returning, removing any no-return flags (since this is used outside of the RPC context) and applying the shallow flag if possible.
func ToUserProp ¶
func ValidateNonNil ¶
Validate that a collection of arguments are not nil.
Types ¶
This section is empty.