Skip to content

Commit dcbe03b

Browse files
committed
fix: add RuntimeException
1 parent 2e70803 commit dcbe03b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/exception.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ class ExceptionBuilder<
181181
}
182182
}
183183

184+
const { RuntimeException } = new ExceptionBuilder().setParams({ name: 'RuntimeException' }).build();
185+
184186
const { ValueException } = new ExceptionBuilder().setParams({ name: 'ValueException' }).build();
185187

186188
const { OutOfRangeException } = new ExceptionBuilder()
@@ -204,4 +206,4 @@ export type {
204206
ExceptionStatic,
205207
ExceptionType
206208
};
207-
export { BaseException, ExceptionBuilder, OutOfRangeException, ValueException };
209+
export { BaseException, ExceptionBuilder, OutOfRangeException, RuntimeException, ValueException };

0 commit comments

Comments
 (0)