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.
35 lines
1.2 KiB
35 lines
1.2 KiB
using System.Runtime.Serialization;
|
|
|
|
namespace CoreLibrary.Exceptions
|
|
{
|
|
/// <summary>
|
|
/// Exception levée lorsqu'un jeton est ajouté à un code déjà complet.
|
|
/// </summary>
|
|
[Serializable]
|
|
public class CodeCompletException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Initialise une nouvelle instance de la classe <see cref="CodeCompletException"/>.
|
|
/// </summary>
|
|
private const string messageDefaut = "Le code dans lequel vous essayez d'ajouter un jeton est déjà complet.";
|
|
|
|
public CodeCompletException() : base(messageDefaut)
|
|
{}
|
|
|
|
public CodeCompletException(string message) : base(message)
|
|
{}
|
|
|
|
public CodeCompletException(string message, Exception exception) : base(message, exception)
|
|
{}
|
|
|
|
[Obsolete("", DiagnosticId = "SYSLIB0051")]
|
|
protected CodeCompletException(SerializationInfo info, StreamingContext contexte) : base(info, contexte) { }
|
|
|
|
[Obsolete("", DiagnosticId = "SYSLIB0051")]
|
|
public override void GetObjectData(SerializationInfo info, StreamingContext contexte)
|
|
{
|
|
base.GetObjectData(info, contexte);
|
|
}
|
|
}
|
|
}
|