exception handling in base activity