From 0538bac931a45e7a0485f9a2292fea6dcadc6e15 Mon Sep 17 00:00:00 2001 From: TypoMustakes Date: Mon, 8 Jan 2024 16:58:37 +0100 Subject: [PATCH] TODO: Implement checking endpoint availability on startup --- WD7UVN_HFT_2023241.Client/RestService.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/WD7UVN_HFT_2023241.Client/RestService.cs b/WD7UVN_HFT_2023241.Client/RestService.cs index 8235011..f66d406 100644 --- a/WD7UVN_HFT_2023241.Client/RestService.cs +++ b/WD7UVN_HFT_2023241.Client/RestService.cs @@ -247,4 +247,19 @@ namespace WD7UVN_HFT_2023241.Client } public string Msg { get; set; } } + + public class EndpointNotAvailableException : Exception + { + public EndpointNotAvailableException() : base("The client could not reach the API endpoint.") + { + } + + public EndpointNotAvailableException(string message) : base(message) + { + } + + public EndpointNotAvailableException(string message, Exception innerException) : base(message, innerException) + { + } + } }