You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
731 B
18 lines
731 B
namespace CoreLibrary.Exceptions
|
|
{
|
|
/// <summary>
|
|
/// Exception levée lorsqu'un indice de jeton est invalide.
|
|
/// </summary>
|
|
public class IndiceCodeException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Initialise une nouvelle instance de la classe <see cref="IndiceCodeException"/>.
|
|
/// </summary>
|
|
/// <param name="indice">L'indice incorrect qui a été spécifié.</param>
|
|
/// <param name="indiceMax">L'indice maximum permis.</param>
|
|
public IndiceCodeException(int indice, int indiceMax) :
|
|
base($"Vous avez essayé de récupérer le jeton à la place {indice}, mais son indice doit être compris entre 0 et {indiceMax}.")
|
|
{ }
|
|
}
|
|
}
|