This repository has been archived by the owner on Sep 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #26 from LeoChen98/dev
[2.4.0.21]
- Loading branch information
Showing
5 changed files
with
84 additions
and
13 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
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,24 @@ | ||
using System; | ||
|
||
namespace BiliAccount.Exceptions | ||
{ | ||
/// <summary> | ||
/// 传入了错误的颜色值 | ||
/// </summary> | ||
public class InvalidColorValue:Exception | ||
{ | ||
/// <summary> | ||
/// 错误的属性名 | ||
/// </summary> | ||
public string PropertyName { get; private set; } | ||
|
||
/// <summary> | ||
/// 以指定的属性名初始化<see cref="InvalidColorValue"/> | ||
/// </summary> | ||
/// <param name="name">属性名</param> | ||
public InvalidColorValue(string name) : base($"传入了错误的颜色值!{name}") | ||
{ | ||
PropertyName = name; | ||
} | ||
} | ||
} |
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