elixir-cloud-aai / drs-filer

Lightweight, flexible Flask/Gunicorn-based GA4GH DRS implementation
Apache License 2.0
5 stars 8 forks source link

Importing error from the foca #36

Closed anuragxxd closed 3 years ago

anuragxxd commented 3 years ago

Right now we are making extra file of exception.py for using the exceptions error through the app. We can rather use the foca to import the errors as it is defined their also.

uniqueg commented 3 years ago

The exceptions dictionary in FOCA are only the defaults, and they are mainly for demonstration purposes. It's much clearer and more explicit if every app defines their own exceptions and corresponding JSON responses.