Results 1 to 2 of 2

Thread: Difference between an error code and a message code?

  1. #1
    Join Date
    Nov 2007
    Posts
    177

    Default 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. #2
    Join Date
    Dec 2009
    Location
    India
    Posts
    108

    Default

    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
  •