Announcement Announcement Module
Collapse
No announcement yet.
Difference between an error code and a message code? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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.

    Comment

    Working...
    X