BettererError
API > @betterer/errors > BettererError
A custom Error for use in Betterer. It attaches some extra details to a standard JavaScript error for better logging and debugging.
Signature
export declare class BettererError extends Error
Constructors
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(message, details) | Constructs a new instance of the BettererError class |
Properties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| details | BettererErrorDetails | Extra details for the error. | |
| isBettererError | boolean | Used by isBettererError() to detect that an object is an instance of BettererError. |