diff --git a/Sources/CoreLibrary/Exceptions/CodeIncompletException.cs b/Sources/CoreLibrary/Exceptions/CodeIncompletException.cs index 59a7aaf..b437029 100644 --- a/Sources/CoreLibrary/Exceptions/CodeIncompletException.cs +++ b/Sources/CoreLibrary/Exceptions/CodeIncompletException.cs @@ -1,4 +1,6 @@ -namespace CoreLibrary.Exceptions +using System.Runtime.Serialization; + +namespace CoreLibrary.Exceptions { /// /// Exception levée lorsqu'un code incomplet est ajouté à la grille. @@ -19,5 +21,14 @@ 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); + } } } diff --git a/Sources/CoreLibrary/Exceptions/CodeInvalideException.cs b/Sources/CoreLibrary/Exceptions/CodeInvalideException.cs index e5fdfd9..a786e04 100644 --- a/Sources/CoreLibrary/Exceptions/CodeInvalideException.cs +++ b/Sources/CoreLibrary/Exceptions/CodeInvalideException.cs @@ -1,4 +1,6 @@ -namespace CoreLibrary.Exceptions +using System.Runtime.Serialization; + +namespace CoreLibrary.Exceptions { /// /// Exception levée lorsqu'un code avec une taille invalide est ajouté à la grille. @@ -25,5 +27,14 @@ public CodeInvalideException(string message, Exception exception) : base(message, exception) { } + + [Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")] + protected CodeInvalideException(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); + } } } diff --git a/Sources/CoreLibrary/Exceptions/CodeVideException.cs b/Sources/CoreLibrary/Exceptions/CodeVideException.cs index c8d21f9..f9fc813 100644 --- a/Sources/CoreLibrary/Exceptions/CodeVideException.cs +++ b/Sources/CoreLibrary/Exceptions/CodeVideException.cs @@ -1,4 +1,6 @@ -namespace CoreLibrary.Exceptions +using System.Runtime.Serialization; + +namespace CoreLibrary.Exceptions { /// /// Exception levée lorsqu'un jeton est supprimé d'un code qui est déjà vide. @@ -19,5 +21,14 @@ public CodeVideException(string message, Exception exception) : base(message, exception) { } + + [Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")] + protected CodeVideException(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); + } } } diff --git a/Sources/CoreLibrary/Exceptions/GrilleCompleteException.cs b/Sources/CoreLibrary/Exceptions/GrilleCompleteException.cs index f74bd4f..b2d9ce0 100644 --- a/Sources/CoreLibrary/Exceptions/GrilleCompleteException.cs +++ b/Sources/CoreLibrary/Exceptions/GrilleCompleteException.cs @@ -1,4 +1,6 @@ -namespace CoreLibrary.Exceptions +using System.Runtime.Serialization; + +namespace CoreLibrary.Exceptions { /// /// Exception levée lorsqu'un code est ajouté à une grille qui est déjà complète. @@ -19,5 +21,14 @@ public GrilleCompleteException(string message, Exception exception) : base(message, exception) { } + + [Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")] + protected GrilleCompleteException(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); + } } } diff --git a/Sources/CoreLibrary/Exceptions/IndiceCodeException.cs b/Sources/CoreLibrary/Exceptions/IndiceCodeException.cs index fd0e13e..1366665 100644 --- a/Sources/CoreLibrary/Exceptions/IndiceCodeException.cs +++ b/Sources/CoreLibrary/Exceptions/IndiceCodeException.cs @@ -1,4 +1,6 @@ -namespace CoreLibrary.Exceptions +using System.Runtime.Serialization; + +namespace CoreLibrary.Exceptions { /// /// Exception levée lorsqu'un indice de jeton est invalide. @@ -25,5 +27,14 @@ public IndiceCodeException(string message, Exception exception) : base(message, exception) { } + + [Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")] + protected IndiceCodeException(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); + } } } diff --git a/Sources/CoreLibrary/Exceptions/PartieNonCommenceeException.cs b/Sources/CoreLibrary/Exceptions/PartieNonCommenceeException.cs index a2070ed..3c0f8c7 100644 --- a/Sources/CoreLibrary/Exceptions/PartieNonCommenceeException.cs +++ b/Sources/CoreLibrary/Exceptions/PartieNonCommenceeException.cs @@ -1,4 +1,6 @@ -namespace CoreLibrary.Exceptions +using System.Runtime.Serialization; + +namespace CoreLibrary.Exceptions { /// /// Exception levée lorsqu'une opération est tentée alors que la partie n'a pas encore commencé. @@ -19,5 +21,14 @@ public PartieNonCommenceeException(string message, Exception exception) : base(message, exception) { } + + [Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")] + protected PartieNonCommenceeException(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); + } } } diff --git a/Sources/CoreLibrary/Exceptions/TailleCodeException.cs b/Sources/CoreLibrary/Exceptions/TailleCodeException.cs index 9757839..bf3fae9 100644 --- a/Sources/CoreLibrary/Exceptions/TailleCodeException.cs +++ b/Sources/CoreLibrary/Exceptions/TailleCodeException.cs @@ -1,4 +1,6 @@ -namespace CoreLibrary.Exceptions +using System.Runtime.Serialization; + +namespace CoreLibrary.Exceptions { /// /// Exception levée lorsqu'une taille de code invalide est spécifiée. @@ -24,5 +26,14 @@ public TailleCodeException(string message, Exception exception) : base(message, exception) { } + + [Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")] + protected TailleCodeException(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); + } } } diff --git a/Sources/CoreLibrary/Exceptions/TailleGrilleException.cs b/Sources/CoreLibrary/Exceptions/TailleGrilleException.cs index 926d9d1..e7f06ef 100644 --- a/Sources/CoreLibrary/Exceptions/TailleGrilleException.cs +++ b/Sources/CoreLibrary/Exceptions/TailleGrilleException.cs @@ -1,4 +1,6 @@ -namespace CoreLibrary.Exceptions +using System.Runtime.Serialization; + +namespace CoreLibrary.Exceptions { /// /// Exception levée lorsqu'une taille de grille invalide est spécifiée. @@ -24,5 +26,14 @@ public TailleGrilleException(string message, Exception exception) : base(message, exception) { } + + [Obsolete("This method is obsolete. Use alternative methods for data retrieval.", DiagnosticId = "SYSLIB0051")] + protected TailleGrilleException(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); + } } }