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(): UnitClears all errors, seen or otherwise. |
| markSeen | abstract fun markSeen(key: Any): UnitMark an error as seen by the user. |
| onError | abstract fun onError(t: Throwable, title: CharSequence, body: CharSequence, functionItem: FunctionItem? = null): Unitabstract fun onError(error: ErrorDetails): UnitCall to log an error. |
| onWarn | abstract fun onWarn(title: CharSequence, body: CharSequence): UnitLog a simple warning message. |
| remove | abstract fun remove(key: Any): UnitRemove an error from the history. |