# testing.RecordedError.code

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

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

`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.
