Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
errors.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <Windows.h>
5 #include <Strings/components/diagnostics/errors/errors.h>
6 
7 #ifndef BLAM
8 #define BLAM
9 #endif
10 
15 {
16  Log,
20 };
21 
22 namespace Blam
23 {
28  namespace Diagnostics
29  {
33  namespace Errors
34  {
35  BLAM std::string GetErrorString(BlamResult result);
36  }
37  }
38 
46  namespace Error
47  {
54  BLAM void ShowLastErrorInfo(const char* function, BlamErrorDisplayType display_type);
55 
66  BLAM int ShowErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode);
67 
81  BLAM int ShowWin32ErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode);
82 
91  BLAM std::string GetStringFromHResult(HRESULT hr);
92  }
93 }
Blam
Namespace surrounding all major engine components.
Definition: blam_api.h:18
QtDialog
@ QtDialog
Shows a dialog created using Qt.
Definition: errors.h:19
BlamErrorDisplayType
BlamErrorDisplayType
Enumerator used to control how error info from Blam::Error::ShowLastErrorInfo is displayed.
Definition: errors.h:14
Win32Dialog
@ Win32Dialog
Shows an engine Error dialog.
Definition: errors.h:17
Log
@ Log
Writes the error to the game log.
Definition: errors.h:16
Blam::Error::ShowErrorDialog
BLAM int ShowErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode)
Shows an Error dialog with the specified error details and result handle.
Definition: errors.cpp:96
BLAM
#define BLAM
Definition: errors.h:8
Win32MessageBox
@ Win32MessageBox
Shows a generic message box.
Definition: errors.h:18
Blam::Error::ShowLastErrorInfo
BLAM void ShowLastErrorInfo(const char *function, BlamErrorDisplayType display_type)
Displays the last error information from Windows.
Definition: errors.cpp:12
Blam::Diagnostics::Errors::GetErrorString
BLAM std::string GetErrorString(BlamResult result)
Definition: error_library.cpp:9
Blam::Error::GetStringFromHResult
BLAM std::string GetStringFromHResult(HRESULT hr)
Converts a result handle to a string.
Definition: errors.cpp:66
Blam::Error::ShowWin32ErrorDialog
BLAM int ShowWin32ErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode)
Shows an Error dialog with the specified error details and result handle.
Definition: errors.cpp:115