Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { Original error `json:"original_error"` Message string `json:"message"` ErrCode ErrorCode `json:"error_code"` }
func (*Error) GRPCStatus ¶
type FieldViolation ¶
func BuildViolations ¶
func BuildViolations(verrs validator.ValidationErrors) []*FieldViolation
type ValidationError ¶
type ValidationError struct {
FieldViolations []*FieldViolation
}
func NewValidationError ¶
func NewValidationError(violations []*FieldViolation) *ValidationError
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
func (*ValidationError) GRPCStatus ¶
func (e *ValidationError) GRPCStatus() *status.Status
Click to show internal directories.
Click to hide internal directories.