Elaztek Developer Hub
Blamite Game Engine - blam!  00368.02.12.23.1347.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  {
40  BLAM std::string GetErrorString(BlamResult result);
41 
48  }
49  }
50 
58  namespace Error
59  {
66  BLAM void ShowLastErrorInfo(const char* function, BlamErrorDisplayType display_type);
67 
78  BLAM int ShowErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode);
79 
93  BLAM int ShowWin32ErrorDialog(std::string message, HRESULT hr, bool allow_continue, bool allow_safemode);
94 
103  BLAM std::string GetStringFromHResult(HRESULT hr);
104  }
105 }
Blam
Namespace surrounding all major engine components.
Definition: blam_api.h:28
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::Diagnostics::Errors::RegisterSignalExceptions
BLAM void RegisterSignalExceptions()
Registers all signal handlers.
Definition: errors.cpp:57
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:150
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:66
Blam::Diagnostics::Errors::GetErrorString
BLAM std::string GetErrorString(BlamResult result)
Alias of Blam::EngineText::LookupErrorString().
Definition: error_library.cpp:7
BlamCommentStyle::Error
@ Error
The comment will be given an error message appearance.
Blam::Error::GetStringFromHResult
BLAM std::string GetStringFromHResult(HRESULT hr)
Converts a result handle to a string.
Definition: errors.cpp:120
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:169