Last active
July 3, 2016 17:32
-
-
Save sembozdemir/33e6c118a53775e404282a5b39a669e6 to your computer and use it in GitHub Desktop.
Try-catch block without timber and any other logger class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
// throw exception | |
throwException(); | |
} catch (Exception e) { | |
// Crashlytics | |
Crashlytics.logException(e); | |
// Firebase Crash Reporting | |
FirebaseCrash.logcat(Log.ERROR, TAG, e.getMessage()); | |
FirebaseCrash.report(e); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment