github.com/blend/go-sdk@v1.20220411.3/validate/validation_errors.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package validate 9 10 import "strings" 11 12 // ValidationErrors is a set of errors. 13 type ValidationErrors []error 14 15 // Error implements error. 16 func (ve ValidationErrors) Error() string { 17 var output []string 18 for _, e := range ve { 19 output = append(output, e.Error()) 20 } 21 return strings.Join(output, "\n") 22 }