Output better error when validate() isn't implemented

This commit is contained in:
Florian Bruhin 2014-04-20 19:24:50 +02:00
parent 1442b1e35f
commit 2da1f05326

View File

@ -107,7 +107,8 @@ class BaseType:
else: else:
return return
else: else:
raise NotImplementedError raise NotImplementedError("{} does not implement validate.".format(
self.__class__.__name__))
class String(BaseType): class String(BaseType):