Files
Arvindh 3fcf2e5369 SMQ-1744 - Error handling with TypedError created on top existing Error (#3170)
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>
2025-12-22 08:31:52 +01:00

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)