Computer Assited Medical Intervention Tool Kit  version 5.0
camitk::AbortException Class Reference

Exception class to handle abortion in component instantiation. Particularly useful to handle constructor's abortion. More...

#include <AbortException.h>

+ Inheritance diagram for camitk::AbortException:
+ Collaboration diagram for camitk::AbortException:

Public Member Functions

 AbortException (std::string s)
 default constructor: give the reason for the exception More...
 
const char * what () const noexcept
 get the detailed reason from the exception More...
 
 ~AbortException ()=default
 

Private Attributes

std::string reason
 

Detailed Description

Exception class to handle abortion in component instantiation. Particularly useful to handle constructor's abortion.

Constructor & Destructor Documentation

◆ AbortException()

camitk::AbortException::AbortException ( std::string  s)
inline

default constructor: give the reason for the exception

◆ ~AbortException()

camitk::AbortException::~AbortException ( )
default

Member Function Documentation

◆ what()

const char* camitk::AbortException::what ( ) const
inlinenoexcept

get the detailed reason from the exception

Referenced by main(), ItkImageComponentExtension::open(), camitk::Application::open(), and camitk::Application::openDirectory().

+ Here is the caller graph for this function:

Member Data Documentation

◆ reason

std::string camitk::AbortException::reason
private

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