gh-pages / com.nextfaze.devfun.error / ErrorHandler

ErrorHandler

interface ErrorHandler (source)

Handles errors that occur during/throughout DevFun.

You should use this in your own modules to provide consistent error handling. It’s unlikely you’ll need to implement this yourself.

The default error handler will show a dialog with the exception stack trace and some error details.

Functions

Name Summary
clearAll abstract fun clearAll(): Unit
Clears all errors, seen or otherwise.
markSeen abstract fun markSeen(key: Any): Unit
Mark an error as seen by the user.
onError abstract fun onError(t: Throwable, title: CharSequence, body: CharSequence, functionItem: FunctionItem? = null): Unit
abstract fun onError(error: ErrorDetails): Unit
Call to log an error.
onWarn abstract fun onWarn(title: CharSequence, body: CharSequence): Unit
Log a simple warning message.
remove abstract fun remove(key: Any): Unit
Remove an error from the history.