envoid/internal/errors/key_not_found.go

14 lines
237 B
Go
Raw Normal View History

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}
}