BlogBackend/internal/application/errors/validation_error.go
2025-09-23 22:03:00 +04:00

15 lines
242 B
Go

package errors
type ValidationError struct {
msg string
}
func NewValidationError(msg string) *ValidationError {
return &ValidationError{
msg: msg,
}
}
func (e *ValidationError) Error() string {
return "Validation error: " + e.msg
}