mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
8 lines
171 B
TypeScript
8 lines
171 B
TypeScript
export default class UnreachableException {
|
|
error: Error;
|
|
|
|
constructor(value: never) {
|
|
this.error = new Error(`unreachable case: ${JSON.stringify(value)}`);
|
|
}
|
|
}
|