Skip to content

Refactor error-handling in TS Bindings #43

@UMR1352

Description

@UMR1352

Feature description

Map each Rust's error type into a TS class that extends Error where Rust's Display implementation is used in TS Error.message and Rust's source becomes Error.cause in TS.
In the actual Rust's bindings to TS import the TS Error through the use of an extern block and implement a conversion between TS <-> Rust error type.

Motivation

Current error-handling is worthless. Most of our errors can only logged out in a desperate attempt for users to understand what isn't working.

Metadata

Metadata

Assignees

Labels

dx-improvementMainly for DX team itself to track issues with features/fixes that improve dx.enhancementNew feature or request

Type

Projects

Status

Product Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions