Errors
Every error thrown by @teakit/matrix is a MatrixError carrying a stable
code from the MatrixErrorCode union (all MATRIX_-prefixed).
API Reference
Type
Codes
Agent Contract
Agent Notes
- Branch on
error.code, not onerror.message(messages are not stable). - Import the type with
import { MatrixError } from "@teakit/matrix". - Each method reference lists the exact codes it can throw under
Throws.