Remove a warning by add a new exception in accessors