throws exception if no permission class associated