Skip to content

Commit 5b3b95b

Browse files
committed
Fix Exception Handling
1 parent 924cf12 commit 5b3b95b

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The difference with dotnet cli is that you need to manually modify the .csproj f
3737

3838
```text
3939
<ItemGroup>
40-
<PackageReference Include="TrackingMore" Version="X.Y.Z" />
40+
<PackageReference Include="TrackingMore" Version="0.1.1" />
4141
</ItemGroup>
4242
```
4343

TrackingMoreAPI/src/Test.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ static void Main(string[] args)
138138
{
139139
Console.WriteLine("Catch custom exceptions:" + ex.Message);
140140
}
141+
catch (TimeoutException ex)
142+
{
143+
Console.WriteLine("Timeout Exception: " + ex.Message);
144+
}
141145
catch (Exception ex)
142146
{
143147
Console.WriteLine("Catch other exceptions:" + ex.Message);

0 commit comments

Comments
 (0)