ErrorMessageProvider


public interface ErrorMessageProvider<T extends Throwable>


Converts throwables into error codes and user readable error messages.

Summary

Public methods

abstract Pair<IntegerString>
getErrorMessage(T throwable)

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

Public methods

getErrorMessage

abstract Pair<IntegerStringgetErrorMessage(T throwable)

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

Parameters
T throwable

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

Returns
Pair<IntegerString>

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