Represents a common dialog box that displays exception dialog.
| 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 |
Constructors | |
| exception_dialog () | |
| Initializes a new instance of the exception_dialog class. More... | |
Properties | |
| xtd::forms::dialog_result | dialog_result () const noexcept |
| Gets async dialog_result result after dialog box is closing. More... | |
| xtd::forms::dialog_appearance | dialog_appearance () const noexcept |
| Gets the dialog appearance. More... | |
| exception_dialog & | dialog_appearance (xtd::forms::dialog_appearance dialog_appearance) |
| Sets the dialog appearance. More... | |
| std::reference_wrapper< const std::exception > | exception () const noexcept |
| Gets exception reference. More... | |
| exception_dialog & | exception (const std::exception &exception) |
| Sets exception. More... | |
| xtd::ustring | text () const noexcept |
| Gets the dialog caption text. More... | |
| exception_dialog & | text (const xtd::ustring &text) |
| Sets the dialog caption text. More... | |
Methods | |
| void | reset () noexcept |
| Resets all properties to empty string. More... | |
| xtd::forms::dialog_result | show_dialog () |
| Runs exception dialog box. More... | |
| xtd::forms::dialog_result | show_dialog (const iwin32_window &owner) |
| Runs exception dialog box. More... | |
| void | show_sheet (const iwin32_window &owner) |
| Runs exception dialog box. More... | |
| xtd::forms::dialog_result | show_sheet_dialog (const iwin32_window &owner) |
| Runs exception dialog box. More... | |
Events | |
| event< exception_dialog, dialog_closed_event_handler > | dialog_closed |
| Occurs when the user close an exception dialog box with dialog close button or other dialog buttons. More... | |
Protected methods | |
| void | on_dialog_closed (const dialog_closed_event_args &e) |
| Raises the close event. More... | |
Additional Inherited Members | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. More... | |
| bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More... | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More... | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More... | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More... | |
| virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More... | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More... | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More... | |
Protected Member Functions inherited from xtd::forms::component | |
| component () | |
| Initialises a new instance of the component class. More... | |
| virtual bool | can_raise_events () const noexcept |
| Gets a value indicating whether the component can raise an event. More... | |
| bool | design_mode () const noexcept |
| Gets a value that indicates whether the component is currently in design mode. More... | |
| xtd::forms::exception_dialog::exception_dialog | ( | ) |
Initializes a new instance of the exception_dialog class.
|
noexcept |
Gets the dialog appearance.
| exception_dialog& xtd::forms::exception_dialog::dialog_appearance | ( | xtd::forms::dialog_appearance | dialog_appearance | ) |
Sets the dialog appearance.
| dialog_appearance | One of the xtd::forms::dialog_appearance values. The default value is xtd::forms::dialog_appearance::standard. |
|
noexcept |
Gets async dialog_result result after dialog box is closing.
|
noexcept |
| exception_dialog& xtd::forms::exception_dialog::exception | ( | const std::exception & | exception | ) |
Sets exception.
| exception | The exception. |
|
protected |
Raises the close event.
| e | An exception_dialog_closed_event_args that provides the event data. |
|
noexcept |
Resets all properties to empty string.
| xtd::forms::dialog_result xtd::forms::exception_dialog::show_dialog | ( | ) |
Runs exception dialog box.
| xtd::forms::dialog_result xtd::forms::exception_dialog::show_dialog | ( | const iwin32_window & | owner | ) |
Runs exception dialog box.
| void xtd::forms::exception_dialog::show_sheet | ( | const iwin32_window & | owner | ) |
Runs exception dialog box.
| xtd::forms::dialog_result xtd::forms::exception_dialog::show_sheet_dialog | ( | const iwin32_window & | owner | ) |
Runs exception dialog box.
|
noexcept |
Gets the dialog caption text.
| exception_dialog& xtd::forms::exception_dialog::text | ( | const xtd::ustring & | text | ) |
Sets the dialog caption text.
| text | The new dialog caption text. |
| event<exception_dialog, dialog_closed_event_handler> xtd::forms::exception_dialog::dialog_closed |
Occurs when the user close an exception dialog box with dialog close button or other dialog buttons.