From 2dd6331a5c5d899e342be297b9ac2c253534e1c5 Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Sun, 24 Dec 2023 20:28:06 -0700 Subject: [PATCH] sort errors --- osmnx/_errors.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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."""