allpix::RuntimeError

Module: Exception classes

Errors related to problems occurring at runtime. More…

#include <exceptions.h>

Inherits from allpix::Exception, std::exception

Inherited by allpix::AmbiguousInstantiationError, allpix::DetectorExistsError, allpix::DetectorInvalidNameError, allpix::DetectorModelExistsError, allpix::DynamicLibraryError, allpix::EndOfRunException, allpix::IncompatibleDatatypesException, allpix::InvalidDetectorError, allpix::InvalidDetectorModelError, allpix::MessageNotFoundException, allpix::MessageWithoutObjectException, allpix::MissingDependenciesException, allpix::MissingReferenceException, allpix::ModelError, allpix::ModuleError, allpix::PassiveElementExistsError, allpix::PulseBadAllocException, allpix::UnexpectedMessageException

Public Functions

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

Protected Functions

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

Additional inherited members

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::RuntimeError;

Errors related to problems occurring at runtime.

Problems that could never have been detected at compile time

Public Functions Documentation

function RuntimeError

inline explicit RuntimeError(
    std::string what_arg
)

Creates exception with the given runtime problem.

Parameters:

  • what_arg Text describing the problem

Protected Functions Documentation

function RuntimeError

RuntimeError() =default

Internal constructor for exceptions setting the error message indirectly.


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