replace old Error() calls with InvalidConstructorException()