Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

Better error raising in object unmarshalling and initialization #5

@sambarnes

Description

@sambarnes

Tons of TODOs scattered around the models and their constructors. Raise errors for things that are illegal completely and always, not just invalid according to blockchain parsing rules.

  • investigate how other large python projects handle this (assertions vs raising ValueError vs ...)
  • determine error classes
  • type and basic value assertions in all constructors
  • create unit tests for these cases to catch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions