Browse Source

Fix build issues with Volo.Docs project exceptions

pull/19192/head
Alex Soh 3 years ago
parent
commit
dabb6c2f5c
No known key found for this signature in database GPG Key ID: DEFCFF89B9E7E767
  1. 11
      modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/DocumentNotFoundException.cs
  2. 11
      modules/docs/src/Volo.Docs.Domain.Shared/Volo/Docs/ResourceNotFoundException.cs
  3. 1
      modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Documents/DocsDocumentController.cs
  4. 1
      modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/Projects/DocsProjectController.cs
  5. 1
      modules/docs/src/Volo.Docs.Web/Areas/Documents/DocumentResourceController.cs

11
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;

11
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;

1
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;

1
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;

1
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;

Loading…
Cancel
Save