Common utilities for error handling within Backstage with structured error classes and serialization functions
63
Custom error base with cause-aware messages
Base inheritance
0%
0%
Cause retention
50%
0%
Message chaining
0%
0%
Subclass naming
0%
0%
Guard helpers
25%
0%
Error shape guards (isError/assertError)
Use isError
100%
60%
Assert invalid
66%
16%
Shape to Error
100%
75%
Skip non-errors
100%
80%
Error serialization helpers (serialize/deserialize/stringify)
Default serialization
0%
60%
Stack opt-in
0%
100%
Cause capture
0%
32%
Error rehydration
0%
40%
Unknown stringify
100%
100%
Cause filtering and enrichment for wrapped errors
Base wrapper
32%
20%
Cause filtering
53%
53%
Forwarded context
40%
50%
Serialization default
0%
60%
Stack opt-in
0%
80%
Roundtrip rebuild
0%
60%
Tolerant parsing of error response bodies
Delegate parsing
0%
0%
Content-type aware
0%
25%
Fallback retention
100%
46%
Error fidelity
0%
33%
Response metadata
66%
33%
ResponseError builder for failed fetch responses
ResponseError usage
100%
100%
Status metadata
100%
100%
Error body & cause
100%
100%
Fallback parsing
100%
100%
Opt-in stack inclusion during error serialization
Default omit
0%
100%
Stack opt-in
0%
100%
Cause handling
0%
100%
Serialized shape
0%
90%
Standard Backstage HTTP-style error classes
Bad request class
100%
100%
Auth class
100%
100%
Forbidden class
100%
100%
Missing resource class
100%
100%
Conflict class
100%
100%
Cause chaining
100%
100%
ForwardedError propagating upstream names
Uses ForwardedError
100%
100%
Cause attached
100%
100%
Context message
100%
100%
Fallback name
100%
100%
Typed error payload shapes (ErrorResponseBody, ConsumedResponse)
Typed response input
0%
25%
Payload typing
0%
32%
Parse helper reuse
0%
0%
Fallback serialization
66%
100%
Error rebuild
40%
100%
Install with Tessl CLI
npx tessl i tessl/npm-backstage--errors