diff --git a/Moonlight/App/Exceptions/DaemonException.cs b/Moonlight/App/ApiClients/Daemon/DaemonException.cs similarity index 93% rename from Moonlight/App/Exceptions/DaemonException.cs rename to Moonlight/App/ApiClients/Daemon/DaemonException.cs index 845c908f..58ca2e9e 100644 --- a/Moonlight/App/Exceptions/DaemonException.cs +++ b/Moonlight/App/ApiClients/Daemon/DaemonException.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Moonlight.App.Exceptions; +namespace Moonlight.App.ApiClients.Daemon; [Serializable] public class DaemonException : Exception diff --git a/Moonlight/App/Exceptions/PaperException.cs b/Moonlight/App/ApiClients/Paper/PaperException.cs similarity index 84% rename from Moonlight/App/Exceptions/PaperException.cs rename to Moonlight/App/ApiClients/Paper/PaperException.cs index 02dbc4cf..da62fcd2 100644 --- a/Moonlight/App/Exceptions/PaperException.cs +++ b/Moonlight/App/ApiClients/Paper/PaperException.cs @@ -1,4 +1,4 @@ -namespace Moonlight.App.Exceptions; +namespace Moonlight.App.ApiClients.Paper; public class PaperException : Exception { diff --git a/Moonlight/App/Exceptions/WingsException.cs b/Moonlight/App/ApiClients/Wings/WingsException.cs similarity index 93% rename from Moonlight/App/Exceptions/WingsException.cs rename to Moonlight/App/ApiClients/Wings/WingsException.cs index 92b83b3f..5cb1d789 100644 --- a/Moonlight/App/Exceptions/WingsException.cs +++ b/Moonlight/App/ApiClients/Wings/WingsException.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace Moonlight.App.Exceptions; +namespace Moonlight.App.ApiClients.Wings; [Serializable] public class WingsException : Exception diff --git a/Moonlight/App/Exceptions/PleskException.cs b/Moonlight/App/Exceptions/PleskException.cs deleted file mode 100644 index 5ad8aa82..00000000 --- a/Moonlight/App/Exceptions/PleskException.cs +++ /dev/null @@ -1,32 +0,0 @@ -using System.Runtime.Serialization; - -namespace Moonlight.App.Exceptions; - -[Serializable] -public class PleskException : Exception -{ - public int StatusCode { get; set; } - - public PleskException() - { - } - - public PleskException(string message, int statusCode) : base(message) - { - StatusCode = statusCode; - } - - public PleskException(string message) : base(message) - { - } - - public PleskException(string message, Exception inner) : base(message, inner) - { - } - - protected PleskException( - SerializationInfo info, - StreamingContext context) : base(info, context) - { - } -} \ No newline at end of file diff --git a/Moonlight/Shared/Components/ErrorBoundaries/SoftErrorBoundary.razor b/Moonlight/Shared/Components/ErrorBoundaries/SoftErrorBoundary.razor index bff6a292..6a417c56 100644 --- a/Moonlight/Shared/Components/ErrorBoundaries/SoftErrorBoundary.razor +++ b/Moonlight/Shared/Components/ErrorBoundaries/SoftErrorBoundary.razor @@ -3,6 +3,7 @@ @using Moonlight.App.Services @using Logging.Net @using Moonlight.App.ApiClients.CloudPanel +@using Moonlight.App.ApiClients.Wings @inherits ErrorBoundaryBase @inject AlertService AlertService