Skip to content

Export foundry-dev-tool errors such as DatasetHasOpenTransactionError #5

Open
@KochC

Description

@KochC

Issue checklist

  • This is a feature request/enhancement. And not a bug.
  • I searched through the GitHub issues and this feature/enhancement has not been requested before.
  • I have installed the latest version of Foundry DevTools and don't use an unsupported python version.
  • Others could also benefit from this feature or enhancement and it is not a very specific use case.

Feature use case

The export of Error types would make it possible to catch raised errors and handle them accordingly.

Description of the Feature

An import of the errors like

from foundry_dev_tools import DatasetHasOpenTransactionError

try:
   # something
except DatasetHasOpenTransactionError as e:
  # something else
except:
  # whatever

would be great.

Alternatives you considered

An import of the errors like

from foundry_dev_tools import Errors

try:
   # something
except Errors.DatasetHasOpenTransactionError as e:
  # something else
except:
  # whatever

would be great.

Additional Context

I

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions