Add options into the message of the errors in order to be able to do what you want.