ErrorMessageProvider


interface ErrorMessageProvider<T : Throwable?>


Converts throwables into error codes and user readable error messages.

Summary

Public functions

Pair<Int!, String!>!
getErrorMessage(throwable: T!)

Returns a pair consisting of an error code and a user readable error message for the given throwable.

Public functions

getErrorMessage

fun getErrorMessage(throwable: T!): Pair<Int!, String!>!

Returns a pair consisting of an error code and a user readable error message for the given throwable.

Parameters
throwable: T!

The throwable for which an error code and message should be generated.

Returns
Pair<Int!, String!>!

A pair consisting of an error code and a user readable error message.