Skip to content

[WIP] improve internal error handling#2252

Open
kyscott18 wants to merge 11 commits intomainfrom
kjs/error-handling
Open

[WIP] improve internal error handling#2252
kyscott18 wants to merge 11 commits intomainfrom
kjs/error-handling

Conversation

@kyscott18
Copy link
Collaborator

@kyscott18 kyscott18 commented Jan 14, 2026

This pr improves the internal error handling of Ponder. Ponder needs to have strictly defined error behavior, exit codes dependent on errors, and useful error logs.

New approach

  • BaseError that designates a recognized error within Ponder. Every error that isn't an instance of BaseError is an unexpected error (bug).
  • Errors are chained together with the "cause" property when errors change across module boundaries.
  • A new error class is only defined when it is meaningful and necessary.
  • Stack traces are only printed in errors if it points to user code or is unrecognized.

Remaining

  • ShutdownError

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant