From 879fb614c6853ab3bb83155c82722afb2933fc60 Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 2 Dec 2022 11:04:34 +0800 Subject: ... --- .../CrupestApi.Secrets/SecretNotExistException.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Secrets/SecretNotExistException.cs') 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 -- cgit v1.2.3