mirror of
https://github.com/BillyOutlast/stash-box.git
synced 2026-02-05 03:11:23 +01:00
15 lines
282 B
Go
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())
|
|
}
|