NewConfigurationError creates a new configuration error with context
(configKey, value, reason, suggestion string)
| 186 | |
| 187 | // NewConfigurationError creates a new configuration error with context |
| 188 | func NewConfigurationError(configKey, value, reason, suggestion string) *ConfigurationError { |
| 189 | if errorHelpersLog.Enabled() { |
| 190 | errorHelpersLog.Printf("Creating configuration error: configKey=%s, reason=%s", configKey, reason) |
| 191 | } |
| 192 | return &ConfigurationError{ |
| 193 | ConfigKey: configKey, |
| 194 | Value: value, |
| 195 | Reason: reason, |
| 196 | Suggestion: suggestion, |
| 197 | Timestamp: time.Now(), |
| 198 | } |
| 199 | } |
| 200 | |
| 201 | var errorAggregationLog = logger.New("workflow:error_aggregation") |
| 202 |