Added some error handling support.

 On branch master
 Changes to be committed:
	modified:   calculator/calculator.cpp
	modified:   calculator/calculator.hpp
	modified:   calculator/calculator.pro.user
	modified:   calculator/main_window.cpp