The following code example demonstrate the use of exception_dialog dialog.
- Windows
-
- macOS
-
- Gnome
-
#include <xtd/xtd>
class form1 : public form {
public:
form1() {
text("Exception dialog example");
try{
throw invalid_operation_exception(
"Throws an invalid operation exception to show an exception dialog.",
current_stack_frame_);
exception_dialog dialog;
}
};
}
private:
};
int main() {
}
Defines the base class for predefined exceptions in the xtd namespace.
Definition: system_exception.h:24
#define current_stack_frame_
Provides information about the current stack frame.
Definition: stack_frame.h:201
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition: system_report.h:17