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
commitbd523a6a7cac09fe580223c3d75e41e1e100f603 (patch)
tree8dcc9fd28c2b7281eb40fa143e96c70518aeefd8 /docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs
parentc53adadcbf93a3b5c1f9c8e2b88bdd0efb122709 (diff)
downloadcrupest-bd523a6a7cac09fe580223c3d75e41e1e100f603.tar.gz
crupest-bd523a6a7cac09fe580223c3d75e41e1e100f603.tar.bz2
crupest-bd523a6a7cac09fe580223c3d75e41e1e100f603.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