14 lines
297 B
Go
Raw Normal View History

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