Rename and move validation exception.
Create a validator base class.