mirror of https://github.com/abpframework/abp.git
7 changed files with 39 additions and 26 deletions
@ -1,10 +1,7 @@ |
|||||
using System; |
namespace Volo.Abp.AspNetCore.Components.WebAssembly.ExceptionHandling |
||||
using System.Threading.Tasks; |
|
||||
|
|
||||
namespace Volo.Abp.AspNetCore.Components.WebAssembly.ExceptionHandling |
|
||||
{ |
{ |
||||
public interface IUserExceptionInformer |
public interface IUserExceptionInformer |
||||
{ |
{ |
||||
Task InformAsync(UserExceptionInformerContext context); |
void Inform(UserExceptionInformerContext context); |
||||
} |
} |
||||
} |
} |
||||
|
|||||
@ -1,7 +1,13 @@ |
|||||
namespace MyCompanyName.MyProjectName.Blazor.Pages |
using System; |
||||
|
using Volo.Abp; |
||||
|
|
||||
|
namespace MyCompanyName.MyProjectName.Blazor.Pages |
||||
{ |
{ |
||||
public partial class Index |
public partial class Index |
||||
{ |
{ |
||||
|
private void ThrowException() |
||||
|
{ |
||||
|
throw new UserFriendlyException("Hey, there was a problem :("); |
||||
|
} |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue