HttpException
class cAlgo.API
DesktopCLICloud
Represents errors that may occur during HTTP request
Definition
public sealed class HttpException : Exception
Namespace: cAlgo.API · Group: HTTP
Examples
var response = Http.Get("https://api.example.com/quotes");
if (!response.IsSuccessful && response.Exception != null)
Print("HTTP request failed: {0}", response.Exception.Message);
response = api.Http.Get("https://api.example.com/quotes")
if not response.IsSuccessful and response.Exception is not None:
api.Print(f"HTTP request failed: {response.Exception.Message}")