go-urlsh/internal/db/errors.go

12 lines
177 B
Go
Raw Permalink Normal View History

2024-09-30 13:19:01 +02:00
package db
import "fmt"
type DatabaseInsertError struct {
message string
}
func (e *DatabaseInsertError) Error() string {
return fmt.Sprintf("%d - %s", e.arg, e.message)
}