mirror of
https://github.com/absmach/magistrala.git
synced 2026-08-07 15:25:48 +00:00
3fcf2e5369
Signed-off-by: Arvindh <arvindh91@gmail.com> Signed-off-by: Felix Gateru <felix.gateru@gmail.com> Co-authored-by: Felix Gateru <felix.gateru@gmail.com>
15 lines
255 B
Go
15 lines
255 B
Go
// Copyright (c) Abstract Machines
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package errors
|
|
|
|
type Mapper interface {
|
|
GetError(key string) (error, bool)
|
|
}
|
|
|
|
type Handler interface {
|
|
HandleError(wrapper, err error) error
|
|
}
|
|
|
|
type HandlerOption func(*Handler)
|