From dabb6c2f5c585c9afed7848593d9f974fabf1c26 Mon Sep 17 00:00:00 2001 From: Alex Soh Date: Mon, 4 Mar 2024 13:19:56 +0800 Subject: [PATCH] Fix build issues with Volo.Docs project exceptions --- .../Volo/Docs/DocumentNotFoundException.cs | 11 +---------- .../Volo/Docs/ResourceNotFoundException.cs | 11 +---------- .../Volo/Docs/Documents/DocsDocumentController.cs | 1 + .../Volo/Docs/Projects/DocsProjectController.cs | 1 + .../Areas/Documents/DocumentResourceController.cs | 1 + 5 files changed, 5 insertions(+), 20 deletions(-) diff --git a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs index aa7bafd284..a2f50e8f22 100644 --- a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs +++ b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs @@ -1,20 +1,11 @@ -using System; -using System.Runtime.Serialization; -using Volo.Abp; +using Volo.Abp; namespace Volo.Docs { - [Serializable] public class DocumentNotFoundException : BusinessException { public string DocumentUrl { get; set; } - public DocumentNotFoundException(SerializationInfo serializationInfo, StreamingContext context) - : base(serializationInfo, context) - { - - } - public DocumentNotFoundException(string documentUrl) { DocumentUrl = documentUrl; diff --git a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs index 6feff9c5cd..0f156edc47 100644 --- a/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs +++ b/modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs @@ -1,20 +1,11 @@ -using System; -using System.Runtime.Serialization; -using Volo.Abp; +using Volo.Abp; namespace Volo.Docs { - [Serializable] public class ResourceNotFoundException : BusinessException { public string ResourceName { get; set; } - public ResourceNotFoundException(SerializationInfo serializationInfo, StreamingContext context) - : base(serializationInfo, context) - { - - } - public ResourceNotFoundException(string resourceName) { ResourceName = resourceName; diff --git a/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs b/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs index 45a5cdf515..71a1d83b4c 100644 --- a/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs +++ b/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Threading.Tasks; +using Asp.Versioning; using Microsoft.AspNetCore.Mvc; using Asp.Versioning; using Volo.Abp; diff --git a/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs b/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs index 1cc1f80cc8..3a23d379ef 100644 --- a/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs +++ b/modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs @@ -1,4 +1,5 @@ using System.Threading.Tasks; +using Asp.Versioning; using Microsoft.AspNetCore.Mvc; using Asp.Versioning; using Volo.Abp; diff --git a/modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs b/modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs index 3e21bab9c7..976782bfce 100644 --- a/modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs +++ b/modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs @@ -1,5 +1,6 @@ using System; using System.Threading.Tasks; +using Asp.Versioning; using Microsoft.AspNetCore.Mvc; using Asp.Versioning; using Volo.Abp;