In some applications the user may want to separate validation logic from
error generation and i18n. This allows to to return any kind of data as
message so that the UI can use it to do further processing.
This code could look a little unclean. A better solution that doesn't
break backwards compatibility would be to add a new API similar to
getValidationErrorMessage, but that would require a lot of work and code
complexity for a not very important use case.
In some applications the user may want to separate validation logic from error generation and i18n. This allows to to return any kind of data as
message
so that the UI can use it to do further processing.This code could look a little unclean. A better solution that doesn't break backwards compatibility would be to add a new API similar to
getValidationErrorMessage
, but that would require a lot of work and code complexity for a not very important use case.Fixes: #53