small change
This commit is contained in:
@ -19,12 +19,7 @@ namespace NAMESPACEPLACEHOLDER.Client {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static ExceptionFactory ExtExceptionFactory = (methodName, response) => {
|
public static ExceptionFactory ExtExceptionFactory = (methodName, response) => {
|
||||||
var status = (int) response.StatusCode;
|
return (((int)response.StatusCode) >= 400) ? new ExtApiException(JsonConvert.DeserializeObject<ErrorResultObject>(response.RawContent)) : null;
|
||||||
if (status >= 400) {
|
|
||||||
var ero = JsonConvert.DeserializeObject<ErrorResultObject>(response.RawContent);
|
|
||||||
return new ExtApiException(ero);
|
|
||||||
}
|
|
||||||
return null;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user