Video Stabilization for Embedded Systems - User Guide - Error codes

From RidgeRun Developer Connection
Jump to: navigation, search


Previous: User Guide/Setting up the stabilizer Index Next: Examples





This page provides a basic description of the RuntimeError class and its different error codes.

RuntimeError

Every method in the Video Stabilization for Embedded Systems library other than getters and setters will return a RuntimeError object. This object contains two attributes: an error code and its message.

Error codes

They form part of the Codes enum and are the following:

  • EOK: everything is ok. This is the default code when the process finishes without any error.
  • ERROR: signals an internal error in the library. You should look at the error message to get more information.
  • INVALID_ARGUMENT: indicates an invalid value in any of the method's parameters. The message should contain more information about which parameter caused the error and how to fix it.
  • OUT_OF_MEMORY: this means the library couldn't assign the memory required to process the frame. You should check the available memory in the system.


Previous: User Guide/Setting up the stabilizer Index Next: Examples