nidus-sync/platform/error.go

15 lines
284 B
Go
Raw Normal View History

package platform
import (
"fmt"
)
type ErrorNotFound struct {
message string
}
func (e ErrorNotFound) Error() string { return fmt.Sprintf("not found: %s", e.message) }
func newNotFound(format string, m ...any) error {
return &ErrorNotFound{message: fmt.Sprintf(format, m...)}
}