-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
233 additions
and
194 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
14 changes: 0 additions & 14 deletions
14
src/Telegram.Bot.Extensions.Passport/Decryption/DecryptionException.cs
This file was deleted.
Oops, something went wrong.
30 changes: 30 additions & 0 deletions
30
src/Telegram.Bot.Extensions.Passport/Decryption/PassportDataDecryptionException.cs
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,30 @@ | ||
using System; | ||
|
||
// ReSharper disable once CheckNamespace | ||
namespace Telegram.Bot.Exceptions | ||
{ | ||
/// <summary> | ||
/// Represents a fatal error in decryption of Telegram Passport Data | ||
/// </summary> | ||
public class PassportDataDecryptionException : Exception | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of <see cref="PassportDataDecryptionException"/> | ||
/// </summary> | ||
/// <param name="message">Error description</param> | ||
public PassportDataDecryptionException(string message) | ||
: base(message) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of <see cref="PassportDataDecryptionException"/> | ||
/// </summary> | ||
/// <param name="message">Error description</param> | ||
/// <param name="innerException">Root cause of the error</param> | ||
public PassportDataDecryptionException(string message, Exception innerException) | ||
: base(message, innerException) | ||
{ | ||
} | ||
} | ||
} |
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
Oops, something went wrong.