-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Powderhouse error proposal #2374
base: main-powderhouse
Are you sure you want to change the base?
Powderhouse error proposal #2374
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this broadly makes sense. Left 2 nits and a question
## API | ||
|
||
* `CliDiagnosticDescriptor` | ||
*`string DiagnosticId` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Needs a space between * and `
* `CliError` | ||
* `public string DiagnosticId` | ||
* `public Location Location` (which includes Symbol and Text to allow messages to be what user typed) | ||
* `public string? Message` (defaults to Diagnostic) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unsure but I think you might mean (defaults to DefaultMessage)
rather than (defaults to Diagnostic)
### `ErrorSubsystem` | ||
|
||
Errors will be managed and reported via the ErrorSubsystem. This is to allow errors to be easily added by any subsystem. This might be preprocessing, execution, or optionally by an uncaught exception. Addition of errors by invocations is supported, to allow consistent reporting of errors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this proposal for ErrorSubsystem
makes sense. Curious if you think my PR for an initial pass at ErrorSubsystem
should be merged first then implement this proposal or vice-versa?
Proposal for the shape of Powderhouse errors and an overview of usage.