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.
mastermind/Sources/CoreLibrary/Exceptions/CodeIncompletException.cs

35 lines
1.3 KiB

using System.Runtime.Serialization;
namespace CoreLibrary.Exceptions
{
/// <summary>
/// Exception levée lorsqu'un code incomplet est ajouté à la grille.
/// </summary>
[Serializable]
public class CodeIncompletException : Exception
{
/// <summary>
/// Initialise une nouvelle instance de la classe <see cref="CodeIncompletException"/>.
/// </summary>
private const string messageDefaut = "Le code que vous essayez d'ajouter dans la grille n'est pas complet.";
public CodeIncompletException() : base(messageDefaut)
{ }
public CodeIncompletException(string message) : base(message)
{ }
public CodeIncompletException(string message, Exception exception) : base(message, exception)
{ }
[Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")]
protected CodeIncompletException(SerializationInfo info, StreamingContext contexte) : base(info, contexte) { }
[Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
{
base.GetObjectData(info, context);
}
}
}