Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Private Attributes | List of all members
camitk::AbortException Class Reference

Exception class to handle abortion in component instanciation. More...

#include <AbortException.h>

Inherits std::exception.

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 instanciation.

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

References reason, and ~AbortException().

◆ ~AbortException()

camitk::AbortException::~AbortException ( )
default

Referenced by AbortException().

Member Function Documentation

◆ what()

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

get the detailed reason from the exception

References reason.

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

Member Data Documentation

◆ reason

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

Referenced by AbortException(), and what().


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