2024-11-22 15:29:25 +00:00
|
|
|
package errors
|
|
|
|
|
|
|
|
type NoKeyFoundError struct {
|
|
|
|
key string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (e *NoKeyFoundError) Error() string {
|
2024-12-16 18:22:58 +00:00
|
|
|
return "key " + e.key + " not found"
|
2024-11-22 15:29:25 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewNoKeyFoundError(key string) *NoKeyFoundError {
|
|
|
|
return &NoKeyFoundError{key: key}
|
|
|
|
}
|