https://github.com/aelfproject/aelf.exceptionhandler.abp
https://github.com/aelfproject/aelf.exceptionhandler.abp
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/aelfproject/aelf.exceptionhandler.abp
- Owner: AElfProject
- License: mit
- Created: 2024-10-14T04:12:22.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-26T05:00:13.000Z (over 1 year ago)
- Last Synced: 2025-11-27T12:51:31.906Z (6 months ago)
- Language: C#
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# AElf.ExceptionHandler.ABP
- [About The Project](#about-the-project)
- [Getting Started](#getting-started)
- [Contributing](#contributing)
- [License](#license)
## About The Project
An ABP module for Exception handling through the [AElf.ExceptionHandler](https://www.nuget.org/packages/AElf.ExceptionHandler).
ABP version: 8.2.0
## Getting Started
Add the following dependency to your project's Module class:
```cs
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:
```cs
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](https://github.com/AElfProject/aelf-dapp-factory/issues/new). 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](LICENSE) for more information.
Distributed under the MIT License. See [License](LICENSE) for more information.