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