File tree 1 file changed +20
-0
lines changed
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,18 @@ class NoTesInstancesAvailable(ValueError):
32
32
class MiddlewareException (ValueError ):
33
33
"""Raised when a middleware could not be applied."""
34
34
35
+ class TesUriError (ValueError ):
36
+ """Raised when TES URI cannot be parsed."""
35
37
36
38
class InvalidMiddleware (MiddlewareException ):
37
39
"""Raised when a middleware is invalid."""
38
40
41
+ class InputUriError (ValueError ):
42
+ """Raised when input URI cannot be parsed."""
43
+
44
+
45
+ class IPDistanceCalculationError (ValueError ):
46
+ """Raised when IP distance cannot be calculated."""
39
47
40
48
exceptions = {
41
49
Exception : {
@@ -94,4 +102,16 @@ class InvalidMiddleware(MiddlewareException):
94
102
"message" : "Middleware is invalid." ,
95
103
"code" : "500" ,
96
104
},
105
+ InputUriError : {
106
+ "message" : "Input URI cannot be parsed." ,
107
+ "code" : "400" ,
108
+ },
109
+ IPDistanceCalculationError : {
110
+ "message" : "IP distance calculation failed." ,
111
+ "code" : "500" ,
112
+ },
113
+ TesUriError : {
114
+ "message" : "TES URI cannot be parsed" ,
115
+ "code" : "400" ,
116
+ },
97
117
}
You can’t perform that action at this time.
0 commit comments