Skip to content

Commit 4f168a9

Browse files
committed
Update throw_helper.cpp
1 parent 490222c commit 4f168a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/xtd.core/src/xtd/helpers/throw_helper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ void throw_helper::throws(enum exception_case exception_case, const source_locat
4343
case exception_case::null_pointer: throw null_pointer_exception {to_stack_frame(location)};
4444
case exception_case::overflow: throw overflow_exception {to_stack_frame(location)};
4545
case exception_case::rank: throw rank_exception {to_stack_frame(location)};
46-
default: throw exception {"Invalid xtd::helpers::exception_case value", to_stack_frame(source_location::current())};
46+
default: throw argument_exception {"Invalid xtd::helpers::exception_case value"};
4747
}
4848
}
4949

@@ -65,6 +65,6 @@ void throw_helper::throws(enum exception_case exception_case, const char* messag
6565
case exception_case::null_pointer: throw null_pointer_exception {message, to_stack_frame(location)};
6666
case exception_case::overflow: throw overflow_exception {message, to_stack_frame(location)};
6767
case exception_case::rank: throw rank_exception {message, to_stack_frame(location)};
68-
default: throw exception {"Invalid xtd::helpers::exception_case value", to_stack_frame(source_location::current())};
68+
default: throw argument_exception {"Invalid xtd::helpers::exception_case value"};
6969
}
7070
}

0 commit comments

Comments
 (0)