added throws statement in doc