aboutsummaryrefslogtreecommitdiff
path: root/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-12-11 10:43:56 +0800
committercrupest <crupest@outlook.com>2022-12-20 20:32:53 +0800
commit2c7e3b1c00dc13ab3647d960a79d1d7b5ba6c362 (patch)
tree8dcc9fd28c2b7281eb40fa143e96c70518aeefd8 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs
parentc2e7d3c222fcbfcce9c9a0b44dd7e82742e9cd1f (diff)
downloadcrupest-2c7e3b1c00dc13ab3647d960a79d1d7b5ba6c362.tar.gz
crupest-2c7e3b1c00dc13ab3647d960a79d1d7b5ba6c362.tar.bz2
crupest-2c7e3b1c00dc13ab3647d960a79d1d7b5ba6c362.zip
Develop secret api. v26
Diffstat (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs')
-rw-r--r--docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs
new file mode 100644
index 0000000..1a10b97
--- /dev/null
+++ b/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs
@@ -0,0 +1,15 @@
+namespace CrupestApi.Commons.Crud;
+
+/// <summary>
+/// This exception means the exception is caused by user and can be safely shown to user.
+/// </summary>
+[System.Serializable]
+public class UserException : Exception
+{
+ public UserException() { }
+ public UserException(string message) : base(message) { }
+ public UserException(string message, System.Exception inner) : base(message, inner) { }
+ protected UserException(
+ System.Runtime.Serialization.SerializationInfo info,
+ System.Runtime.Serialization.StreamingContext context) : base(info, context) { }
+} \ No newline at end of file