diff --git a/osmnx/_errors.py b/osmnx/_errors.py index eb9e792e8..40b2fd9d7 100644 --- a/osmnx/_errors.py +++ b/osmnx/_errors.py @@ -1,17 +1,17 @@ """Define custom errors and exceptions.""" -class ResponseStatusCodeError(ValueError): - """Exception for an unhandled server response status code.""" - - class CacheOnlyInterruptError(InterruptedError): """Exception for settings.cache_only_mode=True interruption.""" +class GraphSimplificationError(ValueError): + """Exception for a problem with graph simplification.""" + + class InsufficientResponseError(ValueError): """Exception for empty or too few results in server response.""" -class GraphSimplificationError(ValueError): - """Exception for a problem with graph simplification.""" +class ResponseStatusCodeError(ValueError): + """Exception for an unhandled server response status code."""