Skip to content

standardized error handling #1

@EricFalkenberg

Description

@EricFalkenberg

standardize error handling for all of the following methods

  • from_json()
  • from_dict()
  • from_file()
  • to_json()
  • to_dict()

Behavior

  • if value is of incorrect type it should always raise a type error
  • if dictionary contains a key that is not in the packson object, the function should raise an attribute error
  • the to_* methods should raise serialization errors if something in the object cannot be serialized

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions