xtd 0.2.0
exception_box.h
Go to the documentation of this file.
1 #pragma once
5 #include "../forms_export.h"
6 #include "dialog_result.h"
7 #include "iwin32_window.h"
8 #include <xtd/static>
9 #include <xtd/ustring>
10 
12 namespace xtd {
14  namespace forms {
16  class control;
18 
35  class forms_export_ exception_box final static_ {
36  public:
38 
42  static dialog_result show(const iwin32_window& owner);
46  static dialog_result show(const iwin32_window& owner, const xtd::ustring& caption);
50  static dialog_result show(const iwin32_window& owner, const std::exception& exception);
55  static dialog_result show(const iwin32_window& owner, const std::exception& exception, const xtd::ustring& caption);
56 
58  static dialog_result show();
61  static dialog_result show(const xtd::ustring& caption);
64  static dialog_result show(const std::exception& exception);
68  static dialog_result show(const std::exception& exception, const xtd::ustring& caption);
70 
71  private:
72  static dialog_result show_exception_box(const iwin32_window* owner, const std::exception* exception = nullptr, const xtd::ustring& caption = "");
73  };
74  }
75 }
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition: dialog_result.h:41
#define static_
This keyword is use to represent a static object. A static object can&#39;t be instantiated (constructors...
Definition: static.h:37
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
Contains xtd::forms::iwin32_window interface.
Provides an interface to expose Win32 HWND handles.
Definition: iwin32_window.h:21
Contains xtd::forms::dialog_result enum class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Represents a common dialog box that displays exception box.
Definition: exception_box.h:35
The left or right CTRL modifier key.