aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-02 11:04:34 +0800
committercrupest <crupest@outlook.com>2022-12-02 13:35:35 +0800
commit879fb614c6853ab3bb83155c82722afb2933fc60 (patch)
tree2f80b57945408b8af83556a4efe5a92dea98e025 /docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs
parent31416d8e047e4209f797881fd24e0e77256f3da1 (diff)
downloadcrupest-879fb614c6853ab3bb83155c82722afb2933fc60.tar.gz
crupest-879fb614c6853ab3bb83155c82722afb2933fc60.tar.bz2
crupest-879fb614c6853ab3bb83155c82722afb2933fc60.zip
...
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