-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
90f98bc
commit 4c92327
Showing
3 changed files
with
126 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System; | ||
|
||
namespace CSharpPlus.Result; | ||
|
||
/// <summary> | ||
/// The exception that is thrown when a invalid explicit cast is made on a result. | ||
/// </summary> | ||
public sealed class ResultInvalidCastException : InvalidOperationException | ||
{ | ||
/// <inheritdoc /> | ||
internal ResultInvalidCastException(string message) : base(message) | ||
{ | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// The exception that is thrown for invalid result values. | ||
/// </summary> | ||
public sealed class ResultInvalidException : InvalidOperationException | ||
{ | ||
/// <inheritdoc /> | ||
internal ResultInvalidException(string message) : base(message) | ||
{ | ||
} | ||
} |
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