net.hockeyapp.android.internal
Class ExceptionHandler
java.lang.Object
net.hockeyapp.android.internal.ExceptionHandler
- All Implemented Interfaces:
- java.lang.Thread.UncaughtExceptionHandler
public class ExceptionHandler
- extends java.lang.Object
- implements java.lang.Thread.UncaughtExceptionHandler
Description
Internal helper class to catch exceptions. Saves the stack trace
as a file and executes callback methods to ask the app for
additional information and meta data (see CrashManagerListener).
License
Copyright (c) 2009 nullwire aps
Copyright (c) 2011,2012 Codenauts UG
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
- Author:
- Mads Kristiansen, Glen Humphrey, Evan Charlton, Peter Hewitt, Thomas Dohmke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExceptionHandler
public ExceptionHandler(java.lang.Thread.UncaughtExceptionHandler defaultExceptionHandler,
CrashManagerListener listener,
boolean ignoreDefaultHandler)
saveException
public static void saveException(java.lang.Throwable exception,
CrashManagerListener listener)
uncaughtException
public void uncaughtException(java.lang.Thread thread,
java.lang.Throwable exception)
- Specified by:
uncaughtException
in interface java.lang.Thread.UncaughtExceptionHandler