'ODTONE - Open Dot Twenty One'

PrevUpHomeNext

Class exception

odtone::exception

Synopsis

// In header: </home/carlos/Projectos/odtone/inc/odtone/exception.hpp>


class exception {
};

Description

Base class for all ODTONE exceptions. This is the base class that all odtone exceptions derive from. Virtual inheritance must be used when deriving from this class!

Example: struct file_error : virtual public odtone::exception { };

struct file_read_error : virtual public file_error { virtual const char* what() throw() { return "read file error"; } };

struct file_write_error : virtual public file_error { virtual const char* what() throw() { return "write file error"; } };


PrevUpHomeNext