Browse Source
Merge pull request #344 from hitaspdotnet/master
Moved UserFriendlyException from Volo.Abp.UI to Volo.Abp namespace
pull/395/head
Halil İbrahim Kalkan
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
4 additions and
14 deletions
-
framework/src/Volo.Abp.Core/Volo.Abp.Core.csproj
-
framework/src/Volo.Abp.Core/Volo/Abp/IUserFriendlyException.cs
-
framework/src/Volo.Abp.Core/Volo/Abp/UserFriendlyException.cs
-
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/App/Views/Simple/ExceptionOnRazor.cshtml
-
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestController.cs
-
framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ExceptionHandling/ExceptionTestController_Tests.cs
|
|
|
@ -1,7 +1,5 @@ |
|
|
|
<Project Sdk="Microsoft.NET.Sdk"> |
|
|
|
|
|
|
|
<Import Project="..\..\..\common.props" /> |
|
|
|
|
|
|
|
<PropertyGroup> |
|
|
|
<TargetFramework>netstandard2.0</TargetFramework> |
|
|
|
<AssemblyName>Volo.Abp.Core</AssemblyName> |
|
|
|
@ -12,7 +10,6 @@ |
|
|
|
<GenerateAssemblyProductAttribute>false</GenerateAssemblyProductAttribute> |
|
|
|
<RootNamespace /> |
|
|
|
</PropertyGroup> |
|
|
|
|
|
|
|
<ItemGroup> |
|
|
|
<PackageReference Include="System.ComponentModel.Annotations" Version="4.5.0" /> |
|
|
|
<PackageReference Include="System.Collections.Immutable" Version="1.5.0" /> |
|
|
|
@ -28,5 +25,4 @@ |
|
|
|
<PackageReference Include="Nito.AsyncEx.Coordination" Version="1.0.2" /> |
|
|
|
<PackageReference Include="Nito.AsyncEx.Context" Version="1.1.0" /> |
|
|
|
</ItemGroup> |
|
|
|
|
|
|
|
</Project> |
|
|
|
</Project> |
|
|
|
@ -1,7 +1,5 @@ |
|
|
|
namespace Volo.Abp.UI |
|
|
|
namespace Volo.Abp |
|
|
|
{ |
|
|
|
//TODO: Move to Volo.Abp namespace
|
|
|
|
|
|
|
|
public interface IUserFriendlyException : IBusinessException |
|
|
|
{ |
|
|
|
|
|
|
|
@ -2,10 +2,8 @@ using System; |
|
|
|
using System.Runtime.Serialization; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
|
|
|
|
namespace Volo.Abp.UI |
|
|
|
namespace Volo.Abp |
|
|
|
{ |
|
|
|
//TODO: Move to Volo.Abp namespace
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// This exception type is directly shown to the user.
|
|
|
|
/// </summary>
|
|
|
|
@ -1,4 +1,4 @@ |
|
|
|
@using Volo.Abp.UI |
|
|
|
@using Volo.Abp |
|
|
|
<h2>Exception test</h2> |
|
|
|
@{ |
|
|
|
throw new UserFriendlyException("test exception!"); |
|
|
|
|
|
|
|
@ -1,5 +1,4 @@ |
|
|
|
using Microsoft.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.UI; |
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.ExceptionHandling |
|
|
|
{ |
|
|
|
|
|
|
|
@ -2,7 +2,6 @@ |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Shouldly; |
|
|
|
using Volo.Abp.Http; |
|
|
|
using Volo.Abp.UI; |
|
|
|
using Xunit; |
|
|
|
|
|
|
|
namespace Volo.Abp.AspNetCore.Mvc.ExceptionHandling |
|
|
|
|