MarlinMT  0.1.0
Exceptions.h File Reference
#include <exception>
#include <string>

Go to the source code of this file.

Classes

class  marlinmt::Exception
 Exception class. More...
 

Namespaces

 marlinmt
 

Macros

#define MARLINMT_THROW(message)   throw marlinmt::Exception( __LINE__, __PRETTY_FUNCTION__, __FILE__, message )
 
#define MARLINMT_THROW_T(ExceptionType, message)   throw ExceptionType( __LINE__, __PRETTY_FUNCTION__, __FILE__, message )
 
#define MARLINMT_RETHROW(orig, message)   throw marlinmt::Exception( orig, __LINE__, __PRETTY_FUNCTION__, __FILE__, message )
 
#define MARLINMT_RETHROW_T(ExceptionType, orig, message)   throw ExceptionType( orig, __LINE__, __PRETTY_FUNCTION__, __FILE__, message )
 
#define MARLINMT_SKIP_EVENT(proc)   MARLINMT_THROW_T( marlinmt::SkipEventException, proc->name() )
 
#define MARLINMT_STOP_PROCESSING(proc)   MARLINMT_THROW_T( marlinmt::StopProcessingException, proc->name() )
 
#define MARLINMT_DEFINE_EXCEPTION(ClassName)
 

Functions

 marlinmt::MARLINMT_DEFINE_EXCEPTION (SkipEventException)
 Definition of Marlin exceptions. More...
 
 marlinmt::MARLINMT_DEFINE_EXCEPTION (StopProcessingException)
 
 marlinmt::MARLINMT_DEFINE_EXCEPTION (ParseException)
 
 marlinmt::MARLINMT_DEFINE_EXCEPTION (BookStoreException)
 

Macro Definition Documentation

◆ MARLINMT_DEFINE_EXCEPTION

#define MARLINMT_DEFINE_EXCEPTION (   ClassName)
Value:
class ClassName : public marlinmt::Exception { \
public: \
ClassName() = delete ; \
ClassName( const ClassName & ) = default ; \
~ClassName() = default ; \
inline ClassName( const std::string &message ) : \
marlinmt::Exception( std::string( #ClassName ) + " - " + message ) {} \
inline ClassName( unsigned int line, const std::string &func, const std::string &fname, const std::string &message ) : \
marlinmt::Exception( line, func, fname, std::string( #ClassName ) + " - " + message ) {} \
template <typename T> \
inline ClassName( const T &rhs, unsigned int line, const std::string &func, const std::string &fname, const std::string &message ) : \
marlinmt::Exception( rhs, line, func, fname, std::string( #ClassName ) + " - " + message ) {} \
}
Definition: EntryData.h:93
Exception class.
Definition: Exceptions.h:60

Definition at line 18 of file Exceptions.h.

◆ MARLINMT_RETHROW

◆ MARLINMT_RETHROW_T

#define MARLINMT_RETHROW_T (   ExceptionType,
  orig,
  message 
)    throw ExceptionType( orig, __LINE__, __PRETTY_FUNCTION__, __FILE__, message )

Definition at line 11 of file Exceptions.h.

Referenced by marlinmt::XMLConfigReader::parseProcessorParameters().

◆ MARLINMT_SKIP_EVENT

#define MARLINMT_SKIP_EVENT (   proc)    MARLINMT_THROW_T( marlinmt::SkipEventException, proc->name() )

Definition at line 14 of file Exceptions.h.

Referenced by marlinmt::ProcessorApi::skipCurrentEvent().

◆ MARLINMT_STOP_PROCESSING

#define MARLINMT_STOP_PROCESSING (   proc)    MARLINMT_THROW_T( marlinmt::StopProcessingException, proc->name() )

Definition at line 15 of file Exceptions.h.

Referenced by marlinmt::ProcessorApi::abort().

◆ MARLINMT_THROW

#define MARLINMT_THROW (   message)    throw marlinmt::Exception( __LINE__, __PRETTY_FUNCTION__, __FILE__, message )

Definition at line 8 of file Exceptions.h.

Referenced by marlinmt::Extensions::add(), marlinmt::Configuration::addConstant(), marlinmt::ConfigSection::addSection(), marlinmt::Component::application(), marlinmt::BookStoreManager::bookHist(), marlinmt::Configurable::checkParameter(), marlinmt::ParameterImpl::checkType(), marlinmt::concurrency::PEPScheduler::configureProcessors(), marlinmt::Configuration::constantAs(), marlinmt::ParameterImpl::construct(), marlinmt::Extensions::create(), marlinmt::Configuration::createSection(), marlinmt::PluginManager::doLoadLibrary(), marlinmt::details::convert< T >::from_string(), marlinmt::details::convert< bool >::from_string(), marlinmt::Extensions::get(), marlinmt::ParameterImpl::get(), marlinmt::ParameterImpl::getDefault(), marlinmt::details::getenv(), marlinmt::ProcessorApi::getRandomSeed(), marlinmt::Application::init(), marlinmt::SimpleScheduler::initialize(), marlinmt::BookStoreManager::initialize(), marlinmt::GeometryManager::initialize(), marlinmt::details::nthreads(), marlinmt::ConfigSection::parameter(), marlinmt::CmdLineParser::parse(), marlinmt::ConfigHelper::readConfig(), marlinmt::PluginManager::registerPlugin(), marlinmt::Extensions::remove(), marlinmt::ConfigSection::section(), marlinmt::Configuration::section(), marlinmt::ParameterImpl::set(), marlinmt::Component::setParameters(), marlinmt::ProcessorApi::setReturnValue(), marlinmt::details::split_string(), marlinmt::details::convert< T >::to_string(), marlinmt::GeometryManager::typeIndex(), and marlinmt::ConfigHelper::writeConfig().

◆ MARLINMT_THROW_T