Medical Imaging Interaction Toolkit  2024.12.99-d991a09f
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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: