The following code example demonstrate the use of exception_dialog dialog.
#include <xtd/xtd>
class form1 :
public form {
public:
form1() {
text("Exception dialog example");
controls().push_back(button1);
button1.location({10, 10});
button1.auto_size(true);
button1.text("Exception...");
button1.click += [&] {
try{
application::exit();
}
};
}
private:
};
int main() {
application::run(form1());
}
The exception that is thrown when a method call is invalid for the object's current state.
Definition: invalid_operation_exception.h:18
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