Skip to main content

Module error

Module error 

Source

Structs§

OlError
A structured, user-facing error with an OL-XXXX code.

Constants§

ERR_ALREADY_RUNNING
A daemon instance is already running on this machine.
ERR_BUG
Code assigned to all internal/unexpected errors routed through bug_report().
ERR_DAEMON_START_FAILED
Daemon process started but health check failed within timeout.
ERR_EVENT_DEDUPED
Event was deduplicated within the TTL window (informational).
ERR_EVENT_TOO_LARGE
Event body exceeds the 1 MB size limit.
ERR_HOOK_AGENT_NOT_FOUND
No supported AI agent was detected on this machine.
ERR_HOOK_CONFLICT
Existing non-OpenLatch hooks detected in settings.json (warning, non-blocking).
ERR_HOOK_MALFORMED_JSONC
The settings.json file contains malformed JSONC that cannot be parsed.
ERR_HOOK_WRITE_FAILED
Cannot read or write the agent’s settings.json (permissions, I/O error).
ERR_INVALID_CONFIG
The configuration file contains an invalid value.
ERR_INVALID_REGEX
A custom regex pattern in config.toml failed to compile.
ERR_MISSING_CONFIG_FIELD
A required configuration field is absent and has no default.
ERR_PORT_IN_USE
The selected port is already in use by another process.
ERR_UNKNOWN_AGENT
Unknown or unsupported agent type in an incoming event.
ERR_VERSION_OUTDATED
A newer version of openlatch is available (warning, non-blocking).