NewTaskValidationError wraps a task validation failure with the shared sentinel.
(err error)
| 340 | |
| 341 | // NewTaskValidationError wraps a task validation failure with the shared sentinel. |
| 342 | func NewTaskValidationError(err error) error { |
| 343 | if err == nil { |
| 344 | return nil |
| 345 | } |
| 346 | return fmt.Errorf("%w: %w", taskpkg.ErrValidation, err) |
| 347 | } |
| 348 | |
| 349 | // StatusForTaskError maps task-domain, workspace, and session failures to transport statuses. |
| 350 | func StatusForTaskError(err error) int { |
no outgoing calls