#include <exception>
#include <string>
Go to the source code of this file.
Classes | |
class | Mimotera::MimoteraException |
Base class of the Mimotera++ exception. More... | |
class | Mimotera::FileException |
Base file exception. More... | |
class | Mimotera::FileNotFoundException |
File not found. More... | |
class | Mimotera::FileAlreadyExistingException |
Output file already exist. More... | |
class | Mimotera::UnknownWritingModeException |
Unknown writing mode. More... | |
class | Mimotera::NotRegularFileException |
Not regular file. More... | |
class | Mimotera::FileReadException |
Problem reading a file. More... | |
class | Mimotera::FileWriteException |
Problem writing a file. More... | |
class | Mimotera::WrongFileSizeException |
Wrong input file size. More... | |
class | Mimotera::EventNotReady |
Event not ready. More... | |
class | Mimotera::MarkerPixelException |
Marker pixel exception. More... | |
Namespaces | |
namespace | Mimotera |
The namespace containing all Mimotera related things. | |
Defines | |
#define | MIMOTERA_FUNC __PRETTY_FUNCTION__ |
Mimotera function. | |
#define | MIMOTERA_THROWX(exc, msg) throw ::Mimotera::InitException(exc(msg), __FILE__, __LINE__, MIMOTERA_FUNC) |
Throw an exception with message. | |
#define | MIMOTERA_THROW(msg) MIMOTERA_THROWX(::Mimotera::MimoteraException, (msg)) |
Throw a base exception with message. | |
#define | MIMOTERA_EXCEPTIONX(name, base) |
Definition of a new derived exception. | |
#define | MIMOTERA_EXCEPTION(name) MIMOTERA_EXCEPTIONX(name, ::Mimotera::MimoteraException) |
Definition of a new exception. | |
Functions | |
template<typename T > | |
const T & | Mimotera::InitException (const T &e, const std::string &file, int line=0, const std::string func="") |
Initialize an exception. |
#define MIMOTERA_EXCEPTION | ( | name | ) | MIMOTERA_EXCEPTIONX(name, ::Mimotera::MimoteraException) |
Definition of a new exception.
Use this macro to define a new exception deriving from the Mimotera::MimoteraException.
name | The name of the new exception. |
Definition at line 87 of file MimoteraException.hh.
#define MIMOTERA_EXCEPTIONX | ( | name, | |||
base | ) |
Value:
class name : public base { \ public: \ name(const std::string & msg) \ : base(msg) {} \ }
Use this macro to define a new exception called name deriving from another Mimotera::MimoteraException called base.
name | The name of the new exception | |
base | The name of the exception the new one in deriving from. |
Definition at line 71 of file MimoteraException.hh.
#define MIMOTERA_FUNC __PRETTY_FUNCTION__ |
Mimotera function.
A smart way to print the function name
Definition at line 35 of file MimoteraException.hh.
#define MIMOTERA_THROW | ( | msg | ) | MIMOTERA_THROWX(::Mimotera::MimoteraException, (msg)) |
Throw a base exception with message.
Use this macro to throw an base exception (Mimotera::MimoteraException) with msg as a message
msg | A string of text to be used as a message for the exception. |
Definition at line 59 of file MimoteraException.hh.
#define MIMOTERA_THROWX | ( | exc, | |||
msg | ) | throw ::Mimotera::InitException(exc(msg), __FILE__, __LINE__, MIMOTERA_FUNC) |
Throw an exception with message.
Use this macro to throw an exception of type exc and using msg as a message
exc | The name of a class deriving from Mimotera::MimoteraException | |
msg | A string of text to be used as a message for the exception. |
Definition at line 48 of file MimoteraException.hh.
Referenced by Mimotera::MimoteraReader::getEvent(), Mimotera::MimoteraDecoder::getXY(), Mimotera::MimoteraWriter::MimoteraWriter(), Mimotera::MimoteraReader::open(), Mimotera::MimoteraReader::readNextEvent(), and Mimotera::MimoteraWriter::writeEvent().