aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs
diff options
context:
space:
mode:
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs')
-rw-r--r--docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs
new file mode 100644
index 0000000..ad082ee
--- /dev/null
+++ b/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs
@@ -0,0 +1,18 @@
+namespace CrupestApi.Secrets;
+
+public class SecretNotExistException : Exception
+{
+ public SecretNotExistException(string requestSecret)
+ : base($"Request secret {requestSecret} not found.")
+ {
+ RequestSecret = requestSecret;
+ }
+
+ public SecretNotExistException(string requestSecret, string message)
+ : base(message)
+ {
+ RequestSecret = requestSecret;
+ }
+
+ public string RequestSecret { get; set; }
+} \ No newline at end of file