errorToast

fun errorToast(throwable: Throwable?)

Logs an exception and shows the user a toast saying "Sorry, something went wrong. Please try again."

Parameters

throwable

Exception to log


fun errorToast(msg: String, throwable: Throwable? = null)

Logs a Log.ERROR message, shows it to the user as a toast and prints the stacktrace of the exception

Parameters

msg

Message to log

throwable

Exception to log


fun errorToast(ctx: Context?, msg: String, throwable: Throwable? = null)

Deprecated

Use errorToast(msg, throwable) instead

Replace with

errorToast(msg, throwable)

Logs a Log.ERROR message, shows it to the user as a toast and prints the stacktrace of the exception

Parameters

msg

Message to log

throwable

Exception to log