Files
old-svijetlastrana/application/viewmodel/error.go
2018-06-01 10:39:46 +02:00

17 lines
264 B
Go

package viewmodel
import (
"fmt"
"bitbucket.org/nemt/nemt-portal-api/infra/errors"
)
type ValidationError struct {
Errors []errors.ValidationError
Message string
}
func (ve *ValidationError) Error() string {
return fmt.Sprintf("Error: %s", ve.Message)
}