sch*_*gel 10 android exception crittercism
我正在使用android crittercism库并在我捕获错误级别异常时尝试发送报告.
但是我找不到关于如何做到这一点的文档.这甚至可能吗?如果是这样,怎么样?
他们暂时将该功能转变为测试版.如果您通过电子邮件支持,他们将为您的帐户启用已处理的例外情况.以下是Android代码示例:
try
{
throw new Exception("Exception Reason");
}
catch (Exception exception)
{
Crittercism.logHandledException(exception);
}
Run Code Online (Sandbox Code Playgroud)
万一你需要它,这是iOS上的示例代码:
@try {
[NSException raise:NSInvalidArgumentException
format:@"Foo must not be nil"];
} @catch (NSException *exception) {
// Pass it on to us!
[Crittercism logHandledException:exception]
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2162 次 |
| 最近记录: |