Pus exception.h code into .cpp