-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from aksio-insurtech:fix/stuff
Adding custom exception
- Loading branch information
Showing
2 changed files
with
23 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright (c) Aksio Insurtech. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
namespace Aksio.MongoDB; | ||
|
||
/// <summary> | ||
/// Exception that gets thrown when an unknown type is encountered. | ||
/// </summary> | ||
public class UnknownType : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="UnknownType"/> class. | ||
/// </summary> | ||
/// <param name="type">String representation of the unknown type.</param> | ||
public UnknownType(string type) : base($"Unknown type: {type}") | ||
{ | ||
} | ||
} |