ErrorMessageProvider


public interface ErrorMessageProvider<T extends Throwable>


Converts throwables into error codes and user readable error messages.

Summary

Public methods

abstract Pair<Integer, String>
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<Integer, String> getErrorMessage(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<Integer, String>

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