Java Code Examples for com.tencent.tinker.loader.shareutil.ShareConstants#TYPE_INTERPRET_OK

The following examples show how to use com.tencent.tinker.loader.shareutil.ShareConstants#TYPE_INTERPRET_OK . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SampleTinkerReport.java    From HotFixDemo with MIT License 6 votes vote down vote up
public static void onLoadInterpretReport(int type, Throwable e) {
    if (reporter == null) {
        return;
    }
    switch (type) {
        case ShareConstants.TYPE_INTERPRET_GET_INSTRUCTION_SET_ERROR:
            reporter.onReport(KEY_LOADED_INTERPRET_GET_INSTRUCTION_SET_ERROR);
            reporter.onReport("Tinker Exception:interpret occur exception " + TinkerUtils.getExceptionCauseString(e));
            break;
        case ShareConstants.TYPE_INTERPRET_COMMAND_ERROR:
            reporter.onReport(KEY_LOADED_INTERPRET_INTERPRET_COMMAND_ERROR);
            reporter.onReport("Tinker Exception:interpret occur exception " + TinkerUtils.getExceptionCauseString(e));
            break;
        case ShareConstants.TYPE_INTERPRET_OK:
            reporter.onReport(KEY_LOADED_INTERPRET_TYPE_INTERPRET_OK);
            break;
    }
}
 
Example 2
Source File: SampleTinkerReport.java    From tinker-manager with Apache License 2.0 6 votes vote down vote up
public static void onLoadInterpretReport(int type, Throwable e) {
    if (reporter == null) {
        return;
    }
    switch (type) {
        case ShareConstants.TYPE_INTERPRET_GET_INSTRUCTION_SET_ERROR:
            reporter.onReport(KEY_LOADED_INTERPRET_GET_INSTRUCTION_SET_ERROR);
            reporter.onReport("Tinker Exception:interpret occur exception " + SampleUtils.getExceptionCauseString(e));
            break;
        case ShareConstants.TYPE_INTERPRET_COMMAND_ERROR:
            reporter.onReport(KEY_LOADED_INTERPRET_INTERPRET_COMMAND_ERROR);
            reporter.onReport("Tinker Exception:interpret occur exception " + SampleUtils.getExceptionCauseString(e));
            break;
        case ShareConstants.TYPE_INTERPRET_OK:
            reporter.onReport(KEY_LOADED_INTERPRET_TYPE_INTERPRET_OK);
            break;
    }
}