Files
stash-box/pkg/models/errors.go
2021-01-12 18:31:52 +01:00

15 lines
282 B
Go

package models
import (
"fmt"
"github.com/gofrs/uuid"
)
// NotFoundError indicates that an object with the given id was not found.
type NotFoundError uuid.UUID
func (e NotFoundError) Error() string {
return fmt.Sprintf("object with id %s not found", uuid.UUID(e).String())
}