envoid/internal/errors/key_not_found.go
Sagi Dayan 1e9739edfd
Some checks failed
ci/ci / Check for spelling errors (pull_request) Successful in 2m56s
ci/ci / Code quality (pull_request) Failing after 1s
ci/ci / Make sure build does not fail (pull_request) Successful in 15m41s
ci/ci / notify-fail (pull_request) Has been skipped
Added lint to the CI. formatted all code accordingly
Signed-off-by: Sagi Dayan <sagidayan@gmail.com>
2024-12-16 23:17:36 +02:00

13 lines
237 B
Go

package errors
type NoKeyFoundError struct {
key string
}
func (e *NoKeyFoundError) Error() string {
return "key " + e.key + " not found"
}
func NewNoKeyFoundError(key string) *NoKeyFoundError {
return &NoKeyFoundError{key: key}
}