Changed error parent classes to ValueError