Customizing constraint error messages (including answer by Vaclav Pech)

When defining a constraint, is there a way to create a message to the user which will use the same values checked in that constraint, e.g.
"Invalid amount. Valid range is between 50 and 100"
Where 50 and 100 are not hard-coded, so if the constraint later checks for range of 30 to 90, the message values will be changed accordingly

Answer (by Vaclav Pech):
No, there is not way to customize the error messages for constraints.

Please sign in to leave a comment.