comparison sat/core/exceptions.py @ 3880:03761f8ba8bb

component AP gateway: raise exceptions on apGet + fix exceptions catching in apGetLocalObject: new `exceptions.ExternalRequestError` is raised when request done `apGet` has a return code >= 300. Fix wrong exception catched in `apGetLocalObject`.
author Goffi <goffi@goffi.org>
date Wed, 31 Aug 2022 17:07:01 +0200
parents a8c7e5cef0cb
children e345d93fb6e5
comparison
equal deleted inserted replaced
3879:46930301f0c1 3880:03761f8ba8bb
75 75
76 class DataError(Exception): 76 class DataError(Exception):
77 pass 77 pass
78 78
79 79
80 class ExternalRequestError(Exception):
81 """Request to third party server failed"""
82
83
80 class ConflictError(Exception): 84 class ConflictError(Exception):
81 pass 85 pass
82 86
83 87
84 class TimeOutError(Exception): 88 class TimeOutError(Exception):