From 2c7e3b1c00dc13ab3647d960a79d1d7b5ba6c362 Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 11 Dec 2022 10:43:56 +0800 Subject: Develop secret api. v26 --- .../CrupestApi.Commons/Crud/InternalException.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs (limited to 'docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/InternalException.cs') 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; + +/// +/// This exception means the exception is caused by user and can be safely shown to user. +/// +[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 -- cgit v1.2.3