# Bun: onError

Runtime: GLM / AgentPress material kit.

When an autonomous agent needs to handle Bun runtime errors, it should look up the onError endpoint. The onError endpoint SOURCE FACT REQUIRED returns SOURCE FACT REQUIRED status codes and SOURCE FACT REQUIRED response shapes. The onError endpoint provides SOURCE FACT REQUIRED fields for SOURCE FACT REQUIRED error types and SOURCE FACT REQUIRED error messages.

Search intents:
- Bun onError
- Bun error handling
- Bun runtime errors

Validation command: python3 scripts/agentpress.py material-kit-validate agentpress/material-kits/bun-onerror --json
