python-omgeo icon indicating copy to clipboard operation
python-omgeo copied to clipboard

Define and use a base Exception class for the package

Open KlaasH opened this issue 7 years ago • 0 comments

There are several places where this raises a custom exception with raise Exception(...), e.g. https://github.com/azavea/python-omgeo/blob/8308301edf3921b97dd977f8b54b3201a29b3868/omgeo/services/esri.py#L91.

Making users of the package catch Exception is not very nice. Even if we don't need subtypes, we should define a base Exception class for the package so that people can make their exception handling more specific.

KlaasH avatar Apr 04 '18 16:04 KlaasH