Shows how to use argument_exception exception.
#include <xtd/argument_exception>
#include <xtd/console>
int divide_by_two(int num) {
return num / 2;
}
auto main() -> int {
try {
}
}
The exception that is thrown when one of the arguments provided to a method is not valid.
Definition argument_exception.hpp:23
static void write_line()
Writes the current line terminator to the standard output stream using the specified format informati...
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8