Fixed wrong throws declaration