added posibility to specify exception code in catch clause