Skip to main content

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

void ReportException(
int type,
string exceptionName,
string exceptionMsg,
string exceptionStack,
Dictionary<string, string> extInfo);

Input Parameters

ParametersTypeDescription
CategoryintLanguage type
3: Cocoa
4: C#
5: JS
6: Lua
exceptionNamestringException Name
exceptionMsgstringException Message
exceptionStackstringException Stack Information
extInfoDictionary<string, string>Other Exception Information

Code Example

Dictionary<string, string> paramsDic = new Dictionary<string, string>();
// Add key-value pair
UnionAdapterAPI.GetCrashService().ReportException(5, "crashName", "message", "stack", paramsDic);