Browse Source
Fix build issues with Volo.Docs project exceptions
pull/19192/head
Alex Soh
3 years ago
No known key found for this signature in database
GPG Key ID: DEFCFF89B9E7E767
5 changed files with
5 additions and
20 deletions
-
modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs
-
modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs
-
modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs
-
modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs
-
modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.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; |
|
|
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|
@ -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; |
|
|
|
|
|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Asp.Versioning; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Asp.Versioning; |
|
|
|
using Volo.Abp; |
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using System; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Asp.Versioning; |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Asp.Versioning; |
|
|
|
using Volo.Abp; |
|
|
|
|