xtd 0.2.0
Loading...
Searching...
No Matches
exception_box.h
Go to the documentation of this file.
1
4#pragma once
5#include "../forms_export.h"
6#include "dialog_result.h"
7#include "iwin32_window.h"
8#include <xtd/static>
9#include <xtd/string>
10
12namespace xtd {
14 namespace forms {
16 class control;
18
38 public:
40
44 static dialog_result show(const iwin32_window& owner);
48 static dialog_result show(const iwin32_window& owner, const xtd::string& caption);
52 static dialog_result show(const iwin32_window& owner, const std::exception& exception);
57 static dialog_result show(const iwin32_window& owner, const std::exception& exception, const xtd::string& caption);
58
63 static dialog_result show(const xtd::string& caption);
66 static dialog_result show(const std::exception& exception);
70 static dialog_result show(const std::exception& exception, const xtd::string& caption);
72
73 private:
74 static dialog_result show_exception_box(const iwin32_window* owner, const std::exception* exception = nullptr, const xtd::string& caption = "");
75 };
76 }
77}
Represents text as a sequence of character units.
Definition basic_string.h:79
Defines the base class for predefined exceptions in the xtd namespace.
Definition exception.h:28
Represents a common dialog box that displays exception box.
Definition exception_box.h:37
static dialog_result show(const iwin32_window &owner)
Displays a exception box in front of the specified window. The exception box displays an unknown exce...
static dialog_result show(const iwin32_window &owner, const std::exception &exception, const xtd::string &caption)
Displays a exception box in front of the specified window. The exception box displays a specified exc...
static dialog_result show(const iwin32_window &owner, const xtd::string &caption)
Displays a exception box in front of the specified window. The exception box displays a specified cap...
static dialog_result show()
Displays a exception box. The exception box displays an unknown exception.
static dialog_result show(const xtd::string &caption)
Displays a exception box. The exception box displays a specified caption and unknown exception.
static dialog_result show(const std::exception &exception, const xtd::string &caption)
Displays a exception box. The exception box displays a specified exception and caption.
static dialog_result show(const iwin32_window &owner, const std::exception &exception)
Displays a exception box in front of the specified window. The exception box displays a specified exc...
static dialog_result show(const std::exception &exception)
Displays a exception box. The exception box displays a specified exception.
Provides an interface to expose Win32 HWND handles.
Definition iwin32_window.h:23
Contains xtd::forms::dialog_result enum class.
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
#define forms_export_
Define shared library export.
Definition forms_export.h:13
@ control
The left or right CTRL modifier key.
dialog_result
Specifies identifiers to indicate the return value of a dialog box.
Definition dialog_result.h:43
Contains xtd::forms::iwin32_window interface.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10