THROWABLE_ ONLY
Represents an exception handler method with a single throwable parameter:
fun onFailure(throwable: T)Content copied to clipboard
The parameter must be a Throwable (or subtype).
These handlers match purely on exception type and are invoked for any event when the thrown exception is compatible with the declared throwable parameter.