Represents a common dialog box that displays exception box.
- Header
#include <xtd/forms/exception_box>
- Namespace
- xtd::forms
- Library
- xtd.forms
- Appearance
| Windows | macOS | Gnome |
Light |
html dialog_exception_dialog_m.png html dialog_exception_dialog_g.png
|
Dark |
html dialog_exception_dialog_md.png html dialog_exception_dialog_gd.png
|
- Examples
- The following code example demonstrates the use of exception_box dialog.
#include <xtd/forms/application>
#include <xtd/forms/button>
#include <xtd/forms/exception_box>
#include <xtd/forms/form>
#include <xtd/invalid_operation_exception>
class form1 :
public form {
public:
form1() {
text(
"Exception box example");
try {
}
};
}
private:
};
auto main()->int {
}
◆ show() [1/8]
Displays a exception box in front of the specified window. The exception box displays an unknown exception.
- Parameters
-
owner | A iwin32_window that represents the owner window of the busy box. |
◆ show() [2/8]
Displays a exception box in front of the specified window. The exception box displays a specified caption and unknown exception.
- Parameters
-
owner | A iwin32_window that represents the owner window of the busy box. |
caption | A string that specifies the title bar caption to display. |
◆ show() [3/8]
Displays a exception box in front of the specified window. The exception box displays a specified exception.
- Parameters
-
owner | A iwin32_window that represents the owner window of the busy box. |
exception | An exception to display. |
◆ show() [4/8]
Displays a exception box in front of the specified window. The exception box displays a specified exception and caption.
- Parameters
-
owner | A iwin32_window that represents the owner window of the busy box. |
exception | An exception to display. |
caption | A string that specifies the title bar caption to display. |
◆ show() [5/8]
Displays a exception box. The exception box displays an unknown exception.
- Examples:
- exception_box.cpp.
◆ show() [6/8]
Displays a exception box. The exception box displays a specified caption and unknown exception.
- Parameters
-
caption | A string that specifies the title bar caption to display. |
◆ show() [7/8]
static dialog_result xtd::forms::exception_box::show |
( |
const std::exception & |
exception | ) |
|
|
static |
Displays a exception box. The exception box displays a specified exception.
- Parameters
-
exception | An exception to display. |
◆ show() [8/8]
Displays a exception box. The exception box displays a specified exception and caption.
- Parameters
-
exception | An exception to display. |
caption | A string that specifies the title bar caption to display. |
The documentation for this class was generated from the following file: