error

fun error(throwable: Throwable?)

Logs an exception

Parameters

throwable

Exception to log


fun error(msg: String, throwable: Throwable?)

Logs a Log.ERROR message and prints the stacktrace of the exception

Parameters

msg

Message to log

throwable

Exception to log


fun error(ctx: Context?, throwable: Throwable?)

Deprecated

Use errorToast(throwable) instead

Replace with

errorToast(throwable)

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

Parameters

throwable

Exception to log