Upstream sync
This commit is contained in:
16
application/viewmodel/error.go
Normal file
16
application/viewmodel/error.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user