gh-pages / com.nextfaze.devfun.error / ErrorHandler / onError
onError
abstract fun onError(t: Throwable, title: CharSequence, body: CharSequence, functionItem: FunctionItem? = null): Unit (source)
Call to log an error.
This could be anything from reading/processing throughout DevFun, to more specific scenarios such as when invoking a FunctionItem.
This function simply delegates to ErrorHandler.onError.
Parameters
t - The exception that occurred.
title - A title for the message/dialog.
body - A short description of how/why this exception was thrown.
functionItem - The relevant function item that lead to this error occurring (or null/absent) if not relevant.abstract fun onError(error: ErrorDetails): Unit (source)
Call to log an error.
This could be anything from reading/processing throughout DevFun, to more specific scenarios such as when invoking a FunctionItem.
Parameters
error - The error details.