| 1 | package provider |
| 2 | |
| 3 | import "fmt" |
| 4 | |
| 5 | // ImageInputError marks request preparation, independently of a nested HTTP |
| 6 | // failure. Unwrap preserves cancellation and provider-specific diagnostics. |
| 7 | type ImageInputError struct{ Err error } |
| 8 | |
| 9 | func (e *ImageInputError) Error() string { return fmt.Sprintf("image processing failed: %v", e.Err) } |
| 10 | func (e *ImageInputError) Unwrap() error { return e.Err } |
| 11 | |
| 12 | const FailureKindImageInput = "image_input" |
| 13 |