allpix::ModuleError

Module: Exception classes

General exception for modules if something goes wrong. More…

#include <exceptions.h>

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

Public Functions

Name
ModuleError(std::string reason)
Constructs error with a description.

Additional inherited members

Public Functions inherited from allpix::RuntimeError

Name
RuntimeError(std::string what_arg)
Creates exception with the given runtime problem.

Protected Functions inherited from allpix::RuntimeError

Name
RuntimeError() =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::ModuleError;

General exception for modules if something goes wrong.

Note: Only runtime error that should be raised directly by modules

This error can be raised by modules if a problem comes up that cannot be foreseen by the framework itself.

Public Functions Documentation

function ModuleError

inline explicit ModuleError(
    std::string reason
)

Constructs error with a description.

Parameters:

  • reason Text explaining the reason of the error

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