userdefinedexception

September 14, 2025 ยท View on GitHub

Shows how to use xtd::exception exception.

Sources

Build and run

Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:

xtdc run

Output

type              = user_defined_exception::employee_list_not_found_exception
help_link         = 
h_result          = 0x80131500 (2148734208)
inner_exception   = (null)
message           = The employee list does not exist.
source            = user_defined_exception
stack_trace       =    at main [0x0000665C] in /!---OMITTED---!/user_defined_exception/src/user_defined_exception.cpp:line 24