8000 Typed Errors for aws-cdk-lib et. al. [Tracking] · Issue #32324 · aws/aws-cdk · GitHub
[go: up one dir, main page]

Skip to content
Typed Errors for aws-cdk-lib et. al. [Tracking] #32324
@mrgrain

Description

@mrgrain

Tracking issue: Can be closed once we have migrated all errors and have enabled the eslint-rule to enforce typed errors.


Currently all errors thrown by the AWS CDK in aws-cdk-lib etc are regular untyped Errors. That makes it difficult for a caller to distinguish between errors thrown intentionally by the construct library, and other errors like coding bugs etc.

The CDK should only throw well typed errors.
All errors should be categorized into the type of error they are (most are going to be validation errors).

We should enforce this by writing an eslint rule.

Subtasks

Sub-issues

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0