Errors#

policyengine_core.errors contains error definitions specific to simulations.

NANCreationError#

class policyengine_core.errors.nan_creation_error.NaNCreationError[source]#

Bases: Exception

Simulation error.

ParameterNotFoundError#

class policyengine_core.errors.parameter_not_found_error.ParameterNotFoundError(name, instant_str, variable_name=None)[source]#

Bases: AttributeError

Exception raised when a parameter is not found in the parameters.

ParameterParsingError#

class policyengine_core.errors.parameter_parsing_error.ParameterParsingError(message, file=None, traceback=None)[source]#

Bases: Exception

Exception raised when a parameter cannot be parsed.

PeriodMismatchError#

class policyengine_core.errors.period_mismatch_error.PeriodMismatchError(variable_name, period, definition_period, message)[source]#

Bases: ValueError

Exception raised when one tries to set a variable value for a period that doesn’t match its definition period

SituationParsingError#

class policyengine_core.errors.situation_parsing_error.SituationParsingError(path, message, code=None)[source]#

Bases: Exception

Exception raised when the situation provided as an input for a simulation cannot be parsed

SpiralError#

class policyengine_core.errors.spiral_error.SpiralError[source]#

Bases: Exception

Simulation error.

VariableNameConflictError#

class policyengine_core.errors.variable_name_conflict_error.VariableNameConflictError[source]#

Bases: Exception

Exception raised when two variables with the same name are added to a tax and benefit system.

VariableNotFoundError#

class policyengine_core.errors.variable_not_found_error.VariableNotFoundError(variable_name, tax_benefit_system)[source]#

Bases: Exception

Exception raised when a variable has been queried but is not defined in the TaxBenefitSystem.