2023-07-19 11:52:13 +02:00

14 lines
296 B
Go

package data
import "fmt"
// KeyNotFoundError represents errors for cases where the requested key could not be found.
type KeyNotFoundError struct {
Key string
}
// Error returns the error message.
func (e *KeyNotFoundError) Error() string {
return fmt.Sprintf("Key not found: %s", e.Key)
}