Skip to content

AElfProject/AElf.ExceptionHandler.ABP

Repository files navigation

AElf.ExceptionHandler.ABP

About The Project

An ABP module for Exception handling through the AElf.ExceptionHandler.

ABP version: 8.2.0

Getting Started

Add the following dependency to your project's Module class:

using AElf.ExceptionHandler;

[DependsOn(
    typeof(AOPExceptionModule) // Add this line
)]
public class MyTemplateModule : AbpModule

When setting up your HostBuilder in your Program.cs file, add the following line:

var builder = WebApplication.CreateBuilder(args);
builder.Host
    .ConfigureDefaults(args)
    .UseAutofac()
    .UseAElfExceptionHandler() // Add this line
    .UseSerilog();

This will automatically register the AOPException module and setup your project for AOP Exception Handling.

Contributing

If you encounter a bug or have a feature request, please use the Issue Tracker. The project is also open to contributions, so feel free to fork the project and open pull requests.

License

Distributed under the Apache License. See License for more information. Distributed under the MIT License. See License for more information.