Medical Imaging Interaction Toolkit  2018.4.99-389bf124
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()

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

Definition at line 26 of file berrySafeRunner.cpp.

References BERRY_STATUS_LOC, code, berry::IStatus::ERROR_TYPE, berry::SmartPointer< TObjectType >::GetPointer(), and berry::CoreException::GetStatus().

Referenced by berry::IntroPart::FirePropertyChange(), berry::WorkbenchPart::FirePropertyChange(), and berry::WorkbenchPart::FirePropertyChanged().


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