Skip to content

Consolidated error definitions #692

@jpn--

Description

@jpn--

There is a recently created consolidated location for ActivitySim errors, exceptions, and model problems, in core/exceptions.py. We should move various generic runtime errors here, which also provides a good place to document each kind of problem.

Non-exhaustive set of errors that I found that could be consolidated:

  • RuntimeError("accessibility table is not empty.")
  • RuntimeError(f"{tours_without_persons.sum()} tours with bad person_id")
  • RuntimeError(f"{num_tours_remaining} tours could not be satisfied after {iter} iterations")
  • RuntimeError("failed trips with relative scheduling mode")
  • RuntimeError("Bad row cardinality ...)
  • RuntimeError("Bad non_mandatory tour frequencies")
  • report_bad_choices(...)

Metadata

Metadata

Assignees

Labels

FeatureNew feature or request

Type

No type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions