diff --git a/Sources/CoreLibrary/Code.cs b/Sources/CoreLibrary/Code.cs index 6a1c653..c8d3d7a 100644 --- a/Sources/CoreLibrary/Code.cs +++ b/Sources/CoreLibrary/Code.cs @@ -19,7 +19,7 @@ public void AjouterJeton(Jeton jeton) { if (EstComplet()) - throw new CodeTailleTableauLesJetonsCompletException(); + throw new CodeTableauLesJetonsCompletException(); lesJetons[NbJetons++] = jeton; } @@ -64,7 +64,7 @@ { // Mon code est le code correct, l'autre code est celui qui teste if (!autreCode.EstComplet()) - throw new CodeTailleTableauLesJetonsCompletException(); + throw new CodeTableauLesJetonsIncompletException(); Indicateur[] indicateurs = []; diff --git a/Sources/CoreLibrary/CodeTableauLesJetonsCompletException.cs b/Sources/CoreLibrary/CodeTableauLesJetonsCompletException.cs new file mode 100644 index 0000000..dfc3d44 --- /dev/null +++ b/Sources/CoreLibrary/CodeTableauLesJetonsCompletException.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace CoreLibrary +{ + public class CodeTableauLesJetonsCompletException : Exception + { + public CodeTableauLesJetonsCompletException() : base("Le tableau des jetons est plein") + { } + + } +} diff --git a/Sources/CoreLibrary/CodeTailleTableauLesJetonsCompletException.cs b/Sources/CoreLibrary/CodeTailleTableauLesJetonsCompletException.cs deleted file mode 100644 index b0ec0c9..0000000 --- a/Sources/CoreLibrary/CodeTailleTableauLesJetonsCompletException.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace CoreLibrary -{ - public class CodeTailleTableauLesJetonsCompletException : Exception - { - public CodeTailleTableauLesJetonsCompletException() : base("Le tableau des jetons est plein") - { } - - } -}