allpix::ConfigParseError

Module: Exception classes

Indicates an error while parsing a configuration file.

#include <exceptions.h>

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

Public Functions

Name
ConfigParseError(const std::string & file_name, int line_num)
Construct an error for a invalid configuration file.

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_

Public Functions Documentation

function ConfigParseError

inline ConfigParseError(
    const std::string & file_name,
    int line_num
)

Construct an error for a invalid configuration file.

Parameters:

  • file_name Name of the configuration file
  • line_num Line number where the problem occurred

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