Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing throws documentation to rosbag_cpp writer open() #1788 #1789

Open
wants to merge 3 commits into
base: rolling
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions rosbag2_cpp/include/rosbag2_cpp/writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ class ROSBAG2_CPP_PUBLIC Writer
* more storage and converter options.
*
* \param storage_uri URI of the storage to open.
* \throws runtime_error if internal error happens.
**/
void open(const std::string & uri);

Expand All @@ -83,6 +84,12 @@ class ROSBAG2_CPP_PUBLIC Writer
*
* \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,
Expand Down
4 changes: 4 additions & 0 deletions rosbag2_cpp/include/rosbag2_cpp/writers/sequential_writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ class ROSBAG2_CPP_PUBLIC SequentialWriter
*
* \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,
Expand Down