Error handling#

ItalaApi takes advantage of the GenICam exception set, which is also used by GenApi. Exception handlers in the client code should catch GenericException since ItalaApi reports errors by throwing GenericException or derived classes.

Itala::ISystem* pSystemOne = Itala::CreateSystem();

try
{
  Itala::ISystem* pSystemTwo = Itala::CreateSystem();
}
catch (GenICam::GenericException& e)
{
  //The creation of a second system instance without releasing the first one leads to an exception.
}

pSystemOne->Dispose();
pSystemOne = nullptr;