12 lines
198 B
Go
12 lines
198 B
Go
package errors
|
|
|
|
import "fmt"
|
|
|
|
type EntityValidationFailed struct {
|
|
Reason string
|
|
}
|
|
|
|
func (e EntityValidationFailed) Error() string {
|
|
return fmt.Sprintf("Entity validation failed: %s", e.Reason)
|
|
}
|