14 lines
297 B
Go
14 lines
297 B
Go
|
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)
|
||
|
}
|