Skip to main content

ReportException

[Player Network SDK & MSDK]

Firebase supports reporting exception information for C#, Lua, JS, and other programming languages.

CrashSight supports reporting exception information for C, C++, C#, Java, Object-C, Swift, and other programming languages.

Supported channels: Firebase, CrashSight

Supported Platform

Supports Android, iOS, Windows platform.
note

MSDK currently does not support Windows.

Function Definition

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

Input Parameters

ParameterTypeDescription
typeintLanguage type
3: cocoa
4: C#
5: JS
6: Lua
exceptionNamestringException name
exceptionMsgstringException message
exceptionStackstringException stack
extInfoDictionary<string, string>The extended field for additional information on the exception

Code Sample

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