added all exceptions in throws declaration.