- 
                Notifications
    
You must be signed in to change notification settings  - Fork 285
 
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The documentation of rosbag2_cpp/include/writer.hpp and rosbag2_cpp/include/rosbag2_cpp/writers/sequential_writer.hpp are missing an entry that indicates that it may throw.
Missing documentation:
| void open(const std::string & uri); | 
| void open( | 
Expected Behavior
Something like this in writer.hpp and sequential_writer.hpp:
   *
   * \param storage_options Options to configure the storage
   * \param converter_options options to define in which format incoming messages are stored
+   * \throws runtime_error if 
+   * database directory already exists,
+   * failed to create database directory,
+   * no storage could be initialized,
+   * invalid bag splitting size given,
+   * max cache size less or equal 0 when snapshot mode is enabled.
   **/
  void open(
    const rosbag2_storage::StorageOptions & storage_options,
Actual Behavior
Missing documentation.
Additional context
The instances where it throws are:
| throw std::runtime_error{error.str()}; | 
| throw std::runtime_error{error.str()}; | 
| throw std::runtime_error("No storage could be initialized. Abort"); | 
| throw std::runtime_error{error.str()}; | 
| throw std::runtime_error( | 
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working