Introduce or reuse an exception when trying to get a Flow
object from dict given an unregistered Experimenter Action
#105
Labels
Flow
object from dict given an unregistered Experimenter Action
#105
Currently, it's expected that the supported experimenter actions is properly registered, which our kytos-ng/noviflow, does correctly.
However, if either a new experimenter action is introduced in the future and it's incorrectly registered,
of_core
isn't gracefully raising a different exception, making it harder for clients likeflow_manager
to capture this. Some methods fromof_core
ActionFactoryBase
they might also fail open so leaving room for consistency check problems since it'll incorrectly don't install an action. So, having this a bit more explicitly to fail at least when it comes to the serialization is probably better.For instance, here's an example of a mistaken registered action:
The text was updated successfully, but these errors were encountered: