Skip to content

Catch exception thrown by ROS when required parameter is not set and re-throw with parameter name #23

@tylerjw

Description

@tylerjw
Contributor

Ros emits an exception with a string like this when a required parameter is not set:
Exception thrown during init stage with message: expected [string] got [not set]

Catch that exception and re-throw it but add the name of the parameter to the exception so it prints a more useful error message for the user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tylerjw

        Issue actions

          Catch exception thrown by ROS when required parameter is not set and re-throw with parameter name · Issue #23 · PickNikRobotics/generate_parameter_library