1
Vote

Custom Error Message

description

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.

comments

JamesNK wrote Apr 23, 2012 at 5:20 AM

Is this from schema validation?

JsonSpc wrote Apr 24, 2012 at 12:04 AM

Yes, that is from schema validation.