Medical Imaging Interaction Toolkit  2018.4.99-6a3ea89d
Medical Imaging Interaction Toolkit
berry::CoreException Class Reference

#include <berryCoreException.h>

Inheritance diagram for berry::CoreException:
Collaboration diagram for berry::CoreException:

Public Member Functions

 CoreException (const SmartPointer< IStatus > &status)
 ~CoreException () override throw ()
const char * name () const override throw ()
CoreExceptionclone () const override
void rethrow () const override
SmartPointer< IStatusGetStatus () const

Detailed Description

A checked exception representing a failure.

Core exceptions contain a status object describing the cause of the exception.

This class can be used without OSGi running.

See also

Definition at line 33 of file berryCoreException.h.

Constructor & Destructor Documentation

◆ CoreException()

berry::CoreException::CoreException ( const SmartPointer< IStatus > &  status)

Creates a new exception with the given status object. The message of the given status is used as the exception message.

statusthe status object to be associated with this exception

Definition at line 19 of file berryCoreException.cpp.

Referenced by clone().

◆ ~CoreException()

berry::CoreException::~CoreException ( )
throw (

Definition at line 28 of file berryCoreException.cpp.

Member Function Documentation

◆ clone()

CoreException * berry::CoreException::clone ( ) const

Definition at line 37 of file berryCoreException.cpp.

References CoreException().

◆ GetStatus()

SmartPointer< IStatus > berry::CoreException::GetStatus ( ) const

Returns the status object for this exception.

a status object

Definition at line 47 of file berryCoreException.cpp.

References berry::IStatus::GetChildren().

Referenced by berry::WorkbenchPlugin::GetElementFactory(), and berry::SafeRunner::Run().

◆ name()

const char * berry::CoreException::name ( ) const
throw (

Definition at line 32 of file berryCoreException.cpp.

◆ rethrow()

void berry::CoreException::rethrow ( ) const

Definition at line 42 of file berryCoreException.cpp.

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