> For AI agents: the complete documentation index is available at https://canary.gukhanmun.org/llms.txt, the full documentation bundle is available at https://canary.gukhanmun.org/llms-full.txt.

# Type Alias: ErrorCode

> **ErrorCode** = `"dictionary-load"` | `"segmentation"` | `"invalid-reading"` | `"html-scan"` | `"html-malformed-attr"` | `"markdown"` | `"unsupported-content-type"` | `"invalid-input"` | `"io"` | `"internal"` | `"other"`

Discriminant code carried by every [GukhanmunError](https://canary.gukhanmun.org/api/js/classes/_gukhanmun_types.GukhanmunError.md).

- `"dictionary-load"` — A dictionary file could not be opened, read, or
  decoded.
- `"segmentation"` — The lattice segmenter encountered an internal
  inconsistency.
- `"invalid-reading"` — A dictionary entry's hangul reading is not valid
  hangul.
- `"html-scan"` — The HTML scanner encountered an unrecoverable error.
- `"html-malformed-attr"` — An HTML attribute string could not be parsed.
- `"markdown"` — The Markdown adapter encountered a parsing error.
- `"unsupported-content-type"` — An unrecognised format string was passed
  to `convert` or `stream`.
- `"invalid-input"` — An option value is not in the expected set (e.g. an
  unrecognised preset or render mode string).
- `"io"` — An I/O error occurred (file read, network, …).
- `"internal"` — An internal invariant was violated; this is a bug.
- `"other"` — Any other error not covered by the above codes.
