Report Exception Information (ReportException)
[Player Network SDK & MSDK]
Firebase supports reporting exceptions for languages such as C#, Lua, JS, etc.
Bugly supports reporting exceptions for C/C++/C#, Java, Objective-C/Swift, etc.
Supported channels: Firebase, CrashSight
AndroidiOSWindows
note
MSDK does not support Windows currently
Function definition
- Unity
- Unreal Engine
void ReportException(
int type,
string exceptionName,
string exceptionMsg,
string exceptionStack,
Dictionary<string, string> extInfo);
static void ReportException(
int type,
const std::string &exception_name,
const std::string &exception_msg,
const std::string &exception_stack,
const std::map<std::string, std::string> &ext_info);
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| Category | int | Language type 3: Cocoa 4: C# 5: JS 6: Lua |
| exceptionName | string | Exception Name |
| exceptionMsg | string | Exception Message |
| exceptionStack | string | Exception Stack Information |
| extInfo | Dictionary<string, string> | Other Exception Information |
| Parameters | Type | Description |
|---|---|---|
| Category | int | Language type 3: Cocoa 4: C# 5: JS 6: Lua |
| exception_name | std::string | Exception Name |
| exception_msg | std::string | Exception Message |
| exception_stack | std::string | Exception Stack Information |
| ext_info | std::map<std::string, std::string> | Other Exception Information |
Code Example
- Unity
- Unreal Engine
Dictionary<string, string> paramsDic = new Dictionary<string, string>();
// Add key-value pair
UnionAdapterAPI.GetCrashService().ReportException(5, "crashName", "message", "stack", paramsDic);
std::map < std::string, std::string> _params_map;
// Add key-value pair
GUA_NAMESPACE::GUACrashService::ReportException(5, "CrashName", "Message", "Stack", _params_map);