guardrailBreachError signals that a cost guardrail threshold was exceeded. Execute() maps it to exit code 2 (distinct from 1 = runtime error).
| 450 | // guardrailBreachError signals that a cost guardrail threshold was exceeded. |
| 451 | // Execute() maps it to exit code 2 (distinct from 1 = runtime error). |
| 452 | type guardrailBreachError struct { |
| 453 | breaches []string |
| 454 | } |
| 455 | |
| 456 | func (e *guardrailBreachError) Error() string { |
| 457 | return "cost guardrail breached: " + strings.Join(e.breaches, "; ") |
nothing calls this directly
no outgoing calls
no test coverage detected