GIFT-Grab  1708
Copyright (c) 2015-7, University College London (UCL)
gg::BasicException Class Reference

More specific exceptions should extend this class, which provides all basic exception functionality. More...

#include <except.h>

Inheritance diagram for gg::BasicException:
gg::DeviceAlreadyConnected gg::DeviceNotFound gg::DeviceOffline gg::NetworkSourceUnavailable gg::ObserverError gg::VideoSourceError gg::VideoTargetError

Public Member Functions

 BasicException (const std::string &detail)
 Constructor with detail. More...
 
virtual ~BasicException () noexcept
 Destructor. More...
 
virtual const char * what () const noexcept override
 Get exception detail. More...
 

Protected Attributes

std::string _detail
 Exception details. More...
 

Detailed Description

More specific exceptions should extend this class, which provides all basic exception functionality.

Attention
In Python: This exception maps to RuntimeError

Constructor & Destructor Documentation

§ BasicException()

gg::BasicException::BasicException ( const std::string &  detail)

Constructor with detail.

Parameters
detail

§ ~BasicException()

gg::BasicException::~BasicException ( )
virtualnoexcept

Destructor.

Member Function Documentation

§ what()

const char * gg::BasicException::what ( ) const
overridevirtualnoexcept

Get exception detail.

Returns

Member Data Documentation

§ _detail

std::string gg::BasicException::_detail
protected

Exception details.


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