12 lines
177 B
Go
12 lines
177 B
Go
|
package db
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type DatabaseInsertError struct {
|
||
|
message string
|
||
|
}
|
||
|
|
||
|
func (e *DatabaseInsertError) Error() string {
|
||
|
return fmt.Sprintf("%d - %s", e.arg, e.message)
|
||
|
}
|