Makes sure the error once printed using console.log contains the actual class name.
class MyApiError extends CustomerError {}throw MyApiError() // prints MyApiError instead of simply "Error".
Optional
Generated using TypeDoc
Makes sure the error once printed using console.log contains the actual class name.
Example