Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
berry::SafeRunner Class Reference

#include <berrySafeRunner.h>

Static Public Member Functions

static void Run (ISafeRunnable::Pointer code)
 

Detailed Description

Runs the given ISafeRunnable in a protected mode: exceptions thrown in the runnable are logged and passed to the runnable's exception handler. Such exceptions are not rethrown by this method.

This class can be used without OSGi running.

Definition at line 31 of file berrySafeRunner.h.

Member Function Documentation

◆ Run()

static void berry::SafeRunner::Run ( ISafeRunnable::Pointer  code)
static

Runs the given runnable in a protected mode. Exceptions thrown in the runnable are logged and passed to the runnable's exception handler. Such exceptions are not rethrown by this method.

Parameters
codethe runnable to run

The documentation for this class was generated from the following file: