-
Oct 26th, 2012, 09:20 AM
#1
Difference between an error code and a message code?
Hello,
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).
Regards,
J.
-
Dec 17th, 2012, 07:23 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules