Changed ValidationError to abstract class extending Exception.

AFDP-32