# testing.RecordedError.code

- **Module:** testing
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** property
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/testing.ts#L87
- **Page:** https://libtmux.org/en/ts/latest/reference/testing-recordederror-code/

Which error class raised, when it was one of this package's.

[`code`](/en/ts/latest/reference/testing-recordederror-code/) is the branch a consumer is told to write — it survives bundling
and a worker boundary where `instanceof` does not — so a replayed failure
that has lost it is one they cannot test against.
