14 lines
296 B
Go
Raw Permalink Normal View History

2023-07-19 09:52:13 +00:00
package data
2023-07-06 15:26:19 +00:00
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)
}