mirror of
https://github.com/get-drexa/drive.git
synced 2025-11-30 21:41:39 +00:00
20 lines
279 B
Go
20 lines
279 B
Go
|
|
package user
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
|
||
|
|
"github.com/google/uuid"
|
||
|
|
)
|
||
|
|
|
||
|
|
type NotFoundError struct {
|
||
|
|
id uuid.UUID
|
||
|
|
}
|
||
|
|
|
||
|
|
func newNotFoundError(id uuid.UUID) *NotFoundError {
|
||
|
|
return &NotFoundError{id}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (e *NotFoundError) Error() string {
|
||
|
|
return fmt.Sprintf("user not found: %v", e.id)
|
||
|
|
}
|