-
Notifications
You must be signed in to change notification settings - Fork 48
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 #3090 from eugene-doobu/feature/add-invalid-item-ids
add InvalidMaterialItemId
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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,36 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Nekoyume.Action | ||
{ | ||
/// <summary> | ||
/// Represents an exception that is thrown when an invalid item ID is used. | ||
/// </summary> | ||
[Serializable] | ||
public class InvalidItemIdException : ArgumentOutOfRangeException | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidItemIdException"/> class. | ||
/// </summary> | ||
public InvalidItemIdException() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidItemIdException"/> class with a specified error message. | ||
/// </summary> | ||
/// <param name="msg">The message that describes the error.</param> | ||
public InvalidItemIdException(string msg) : base(msg) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="InvalidItemIdException"/> class with a specified error message | ||
/// </summary> | ||
/// <param name="info">SerializationInfo</param> | ||
/// <param name="context">StreamingContext</param> | ||
protected InvalidItemIdException(SerializationInfo info, StreamingContext context) : base(info, context) | ||
{ | ||
} | ||
} | ||
} |
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