Elaztek Developer Hub
Blamite Game Engine - blam!  00398.09.22.23.2015.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
sentry_options_t
struct sentry_options_s sentry_options_t
Definition: sentry.h:501
Blam::Settings::Config::GetEngineConfiguration
BLAM BlamConfigurationFile * GetEngineConfiguration()
Definition: config.cpp:58
BlamErrorDisplayType
BlamErrorDisplayType
Enumerator used to control how error info from Blam::Error::ShowLastErrorInfo is displayed.
Definition: errors.h:14
Blam::UI::Qt::ShowErrorModal
BLAM int ShowErrorModal(bool allow_safemode, bool allow_continue, const char *text)
Definition: qt.cpp:7
Blam::Logger::LogEvent
BLAM void LogEvent(std::string message)
Logs a message to the log and/or console.
Definition: aliases.cpp:142
Blam::GetEngineDLLHandle
BLAM HMODULE GetEngineDLLHandle()
Retrieves the module handle for the engine.
Definition: main.cpp:743
Blam::Dialogs::SentryEventIdDialogProcedure
BLAM void SentryEventIdDialogProcedure(HINSTANCE instance_handle, HWND window_handle)
Definition: sentry_event_notice.cpp:64
dialogs.h
Blam::Sentry::StartSentry
BLAM void StartSentry()
Definition: sentry.cpp:42
qt.h
logger.h
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::GetWin32MainWindowHandle
BLAM HWND GetWin32MainWindowHandle()
Retrieves the main window handle of the application.
Definition: main.cpp:734
sentry.h
Blam::Config::GetConfig
BLAM ConfigFile * GetConfig()
Retrieves the engine configuration file.
Definition: compat.cpp:5
sentry_options_new
SENTRY_API sentry_options_t * sentry_options_new(void)
Creates a new options struct.
BlamAccessViolationException
Class representing an access violation exception.
Definition: exception.h:69
SENTRY_LEVEL_INFO
@ SENTRY_LEVEL_INFO
Definition: sentry.h:329
Blam::Sentry::ShutdownSentry
BLAM void ShutdownSentry()
Definition: sentry.cpp:109
upload_progress
int upload_progress
Sentry data upload percentage, ranges from 0 to 100.
Definition: sentry.cpp:15
engine_text.h
sentry_init
SENTRY_API int sentry_init(sentry_options_t *options)
Initializes the Sentry SDK with the specified options.
config
ImFontConfig config
Definition: README.txt:49
upload_status
SentryUploadStatus upload_status
Current Sentry upload status.
Definition: sentry.cpp:17
sentry_upload_thread
std::thread sentry_upload_thread
Thread used to gather/upload data for Sentry.
Definition: sentry.cpp:16
NULL
Add a fourth parameter to bake specific font ranges NULL
Definition: README.txt:57
sentry_shutdown
SENTRY_API void sentry_shutdown(void)
Shuts down the sentry client and forces transports to flush out.
sentry_value_new_message_event
SENTRY_API sentry_value_t sentry_value_new_message_event(sentry_level_t level, const char *logger, const char *text)
Creates a new message event value.
errors.h
signal_handler
void signal_handler(int signal)
Definition: errors.cpp:14
sentry_active
bool sentry_active
Definition: sentry.cpp:19
Uploading
@ Uploading
Used when prepared Sentry data is being uploaded to the server.
Definition: crash.h:37
CrashUploadThread
void CrashUploadThread()
Function used to gather and upload Sentry data.
Definition: sentry.cpp:126
Blam::Diagnostics::Errors::RegisterSignalExceptions
BLAM void RegisterSignalExceptions()
Registers all signal handlers.
Definition: errors.cpp:57
SentryUploadStatus
SentryUploadStatus
Enumerator for various Sentry upload states.
Definition: crash.h:35
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::Dialogs::ErrorDialogProcedure
BLAM void ErrorDialogProcedure(HINSTANCE hInst, HWND hWnd, const char *error_text)
Dialog procedure for the Error dialog.
Definition: error_notice.cpp:36
file
sock planetquake com All rights reserved Quake III Arena is a registered trademark of id Inc This level may be electronically distributed only at NO CHARGE to the recipient in its current MUST include this txt file
Definition: chiropteraDM.txt:95
errors.h
BLAM
#define BLAM
Definition: errors.h:8
sentry_capture_event
SENTRY_API sentry_uuid_t sentry_capture_event(sentry_value_t event)
Sends a sentry event.
crash.h
sentry_options_set_dsn
SENTRY_API void sentry_options_set_dsn(sentry_options_t *opts, const char *dsn)
Sets the DSN.
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::Sentry::GetCrashUploadStateMessage
BLAM std::string GetCrashUploadStateMessage()
Retrieves the state of the Sentry data upload.
Definition: sentry.cpp:21
core.h
Blam::Sentry::UploadCrashData
BLAM void UploadCrashData()
Definition: sentry.cpp:144
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.
config.h
Blam::Error::GetStringFromHResult
BLAM std::string GetStringFromHResult(HRESULT hr)
Converts a result handle to a string.
Definition: errors.cpp:120
options
Detailed options
Definition: README.txt:27
exception.h
Blam::EngineText::LookupErrorString
BLAM std::string LookupErrorString(int error_code)
Finds a string message associated with a given error code.
Definition: engine_text.cpp:48
Blam::Dialogs::ErrorDialogModal
BLAM int ErrorDialogModal(HINSTANCE hInst, HWND hWnd, LPSTR error_text, bool allow_continue, bool allow_safemode)
Displays the Error dialog as a modal dialog - in other words, it halts engine execution.
Definition: error_notice.cpp:23
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
event_id
std::string event_id
The event ID generated by Sentry.
Definition: sentry.cpp:18
Blam::Sentry::GetEventID
BLAM std::string GetEventID()
Retrieves the Event ID generated by Sentry, used to cross-reference bug reports and Sentry data.
Definition: sentry.cpp:37