allpix::InvalidModuleActionException

Module: Exception classes

Informs that a module executes an action is it not allowed to do in particular state. More…

#include <exceptions.h>

Inherits from allpix::LogicError, allpix::Exception, std::exception

Public Functions

Name
InvalidModuleActionException(std::string message)
Constructs error with a description.

Additional inherited members

Public Functions inherited from allpix::LogicError

Name
LogicError(std::string what_arg)
Creates exception with the given logical problem.

Protected Functions inherited from allpix::LogicError

Name
LogicError() =default
Internal constructor for exceptions setting the error message indirectly.

Public Functions inherited from allpix::Exception

Name
Exception(std::string what_arg)
Creates exception with the specified problem.
const char * what() const override
Return the error message.

Protected Functions inherited from allpix::Exception

Name
Exception() =default
Internal constructor for exceptions setting the error message indirectly.

Protected Attributes inherited from allpix::Exception

Name
std::string error_message_

Detailed Description

class allpix::InvalidModuleActionException;

Informs that a module executes an action is it not allowed to do in particular state.

A module for example tries to accesses special methods as Module::getOutputPath which are not allowed in the constructors, or sends a message outside the Module::run method.

Public Functions Documentation

function InvalidModuleActionException

inline explicit InvalidModuleActionException(
    std::string message
)

Constructs error with a description.

Parameters:

  • message Text explaining the problem

Updated on 2024-12-13 at 08:31:37 +0000