NewMemoryValidationError wraps a memory validation failure with the shared sentinel.
(err error)
| 132 | |
| 133 | // NewMemoryValidationError wraps a memory validation failure with the shared sentinel. |
| 134 | func NewMemoryValidationError(err error) error { |
| 135 | if err == nil { |
| 136 | return nil |
| 137 | } |
| 138 | return fmt.Errorf("%w: %w", memory.ErrValidation, err) |
| 139 | } |
| 140 | |
| 141 | // ErrSettingsValidation is the sentinel for settings request validation failures. |
| 142 | var ErrSettingsValidation = errors.New("settings validation error") |
no outgoing calls