Skip to content

Commit

Permalink
feat(readme): updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zhifenglee-aelf committed Oct 14, 2024
1 parent cc8b52e commit b488305
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ A demo of AOP Exception Handling.

- [About The Project](#about-the-project)
- [Getting Started](#getting-started)
- [Setup](#setup)
- [Usage](#usage)
- [Exception Handling Strategies](#exception-handling-strategies)
- [Multiple Exception Handling](#multiple-exception-handling)
Expand Down Expand Up @@ -60,21 +59,6 @@ Cons:

## Getting Started

### Setup

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

```cs
using AElf.ExceptionHandler;

[DependsOn(
typeof(AOPExceptionModule)
)]
public class MyTemplateModule : AbpModule
```

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

### Usage
1. Define a Method Returning `FlowBehavior`:
Create a method in your target class that handles exceptions and returns a Task<ExceptionHandlingStrategy>. The strategy will dictate how the flow of the program should behave (e.g., return, rethrow, throw).
Expand Down

0 comments on commit b488305

Please sign in to comment.