allpix::InvalidValueError

Module: Exception classes

Indicates an error with the contents of value. More…

#include <exceptions.h>

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

Public Functions

Name
InvalidValueError(const Configuration & config, const std::string & key, const std::string & reason ="")
Construct an error for an invalid value.

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

Indicates an error with the contents of value.

Should be raised if the data contains valid data for its type (otherwise an InvalidKeyError should have been raised earlier), but the value is not in the range of allowed values.

Public Functions Documentation

function InvalidValueError

InvalidValueError(
    const Configuration & config,
    const std::string & key,
    const std::string & reason =""
)

Construct an error for an invalid value.

Parameters:

  • config Configuration object containing the problematic key
  • key Name of the problematic key
  • reason Reason why the value is invalid (empty if no explicit reason)

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