Tasks #2488

Plugin configurator should be able to report missing plugins

Added by J. Wienke over 6 years ago. Updated over 6 years ago.

Status:ResolvedStart date:02/15/2016
Priority:NormalDue date:
Assignee:J. Wienke% Done:

100%

Category:Plugins
Target version:Robotics Service Bus - rsb-0.13

Description

Otherwise, requested, but not found plugins, will never be reported back to the user.


Related issues

Blocks Robotics Service Bus - Bug #2487: [rsb-cpp] No error message when desired plugins are not i... Resolved 02/12/2016

Associated revisions

Revision c32727d2
Added by J. Wienke over 6 years ago

plugin configurator: NoSuchObject if plugin not found

Throw an exception in the plugin configurator in case a requested plugin
was not found. This behavior can be switched with a boolean in a new
method that has been created to actually execute the configuration of
the plugin system.

This commit breaks the existing API and requires clients to call
execute() on a used Configurator object. This change has been made to
prevent throwing exceptions in destructors.

  • src/rsc/plugins/Configurator.cpp: moved destructor code to execute
    method + new exception in case a plugin is missing if requested.
  • src/rsc/plugins/Configurator.h: likewise
  • test/rsc/plugins/ConfiguratorTest.cpp: test for the new behavior

fixes #2488

History

#1 Updated by J. Wienke over 6 years ago

  • Blocks Bug #2487: [rsb-cpp] No error message when desired plugins are not installed added

#2 Updated by J. Wienke over 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF