Custom Error Message


Can we define our own error message for JSON validate method?
For example, this error message "String '1490AA00' does not match regex pattern '^(\d{5})[A-Z]{2}(\d{2})$'." does not make much sense to user.
It will be wonderful if we can define a custom error message if this does not match condition arise.
Thank you for your time.


JamesNK wrote Apr 23, 2012 at 4:20 AM

Is this from schema validation?

JsonSpc wrote Apr 23, 2012 at 11:04 PM

Yes, that is from schema validation.

wrote Feb 22, 2013 at 1:48 AM