Throwing exception and specific exception catch