com.todoroo.andlib.service
Class ExceptionService
java.lang.Object
com.todoroo.andlib.service.ExceptionService
public class ExceptionService
- extends java.lang.Object
Exception handling utility class - reports and logs errors
- Author:
- Tim Su
Method Summary |
void |
displayAndReportError(android.content.Context context,
java.lang.String name,
java.lang.Throwable error)
Display error dialog if context is activity and report error |
void |
reportError(java.lang.String name,
java.lang.Throwable error)
Report the error via registered error handlers |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
errorReporters
public ExceptionService.ErrorReporter[] errorReporters
ExceptionService
public ExceptionService()
reportError
public void reportError(java.lang.String name,
java.lang.Throwable error)
- Report the error via registered error handlers
- Parameters:
name
- Internal error name. Not displayed to usererror
- Exception encountered. Message will be displayed to user
displayAndReportError
public void displayAndReportError(android.content.Context context,
java.lang.String name,
java.lang.Throwable error)
- Display error dialog if context is activity and report error
- Parameters:
context
- Application Contextname
- Internal error name. Not displayed to usererror
- Exception encountered. Message will be displayed to user