aboutsummaryrefslogtreecommitdiffstats
path: root/packages/utils/src/error_utils.ts
blob: 735d3940ba369c818374b309ad73e511d26a152a (plain) (blame)
1
2
3
4
5
export const errorUtils = {
    spawnSwitchErr(name: string, value: any): Error {
        return new Error(`Unexpected switch value: ${value} encountered for ${name}`);
    },
};