diff --git a/modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/Security/VoloCaptcha/CaptchaException.cs b/modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/Security/VoloCaptcha/CaptchaException.cs index 60b2b8442f..4d0362f5ee 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/Security/VoloCaptcha/CaptchaException.cs +++ b/modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/Security/VoloCaptcha/CaptchaException.cs @@ -1,10 +1,15 @@ -using System; +using System.Runtime.Serialization; +using Volo.Abp; namespace Volo.CmsKit.Public.Application.Security.VoloCaptcha; -public class CaptchaException : Exception +public class CaptchaException : UserFriendlyException { public CaptchaException(string message) : base(message) { } + + public CaptchaException(SerializationInfo serializationInfo, StreamingContext context) : base(serializationInfo, context) + { + } } \ No newline at end of file