Initial commit
This commit is contained in:
11
PkmnLib.Static/Utils/Errors/OutOfRange.cs
Normal file
11
PkmnLib.Static/Utils/Errors/OutOfRange.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using FluentResults;
|
||||
|
||||
namespace PkmnLib.Static.Utils.Errors;
|
||||
|
||||
public class OutOfRange : Error
|
||||
{
|
||||
public OutOfRange(string hint, int index, int max)
|
||||
: base($"{hint} index {index} is out of range. Must be between 0 and {max - 1}.")
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user