Oct 26th, 2012, 09:20 AM
Difference between an error code and a message code?
I am in reference to the following method from BindingResult:
BindingResult.html#resolveMessageCodes(java.lang.S tring, java.lang.String)
I am trying to figure out the difference between an error code and a message code.
Can someone please provide an example? (especially one that would illustrate why there could be several message code for a given error code).
Dec 17th, 2012, 07:23 AM
Error code is your custom code which helps you identify what error occurred while the message code is the key defined in your message resource bundle which will give you the corresponding message. The idea is to derive this message code from the error-code and the name of the field.