Create domain-specific errors by subclassing `Error` and setting `this.name`. This enables granular `catch` and handling strategies.
js
class InsufficientFundsError extends Error {
constructor(msg) {
super(msg);
this.name = "InsufficientFundsError";
}
}