-
Notifications
You must be signed in to change notification settings - Fork 31
Open
1 / 11 of 1 issue completedLabels
C-internalInternal library improvementsInternal library improvementsE-easyEasy issue to fix - Good for newcomersEasy issue to fix - Good for newcomersE-help wantedExtra attention is neededExtra attention is needed
Milestone
Description
Our current design for TemporalError is essentially a mirror of ECMAScript's error types:
Lines 39 to 43 in 345ad54
| #[derive(Debug, Clone, PartialEq)] | |
| pub struct TemporalError { | |
| kind: ErrorKind, | |
| msg: Box<str>, | |
| } |
This works well for engines that have thousands of errors, with each one having a custom message. However, I don't think we need to do that for temporal_rs, and a more rusty approach will be better suited for this. thiserror sounds ideal for this (moreso because it recently added support for no_std).
Sub-issues
Metadata
Metadata
Assignees
Labels
C-internalInternal library improvementsInternal library improvementsE-easyEasy issue to fix - Good for newcomersEasy issue to fix - Good for newcomersE-help wantedExtra attention is neededExtra attention is needed
Type
Projects
Status
Ready