Move error checking to abstract class