diff --git a/EPAServeur/Exceptions/CollaborateurIncompatibleException.cs b/EPAServeur/Exceptions/CollaborateurIncompatibleException.cs new file mode 100644 index 0000000..b14d4bb --- /dev/null +++ b/EPAServeur/Exceptions/CollaborateurIncompatibleException.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Threading.Tasks; + +namespace EPAServeur.Exceptions +{ + /// + /// Exception à jeter lorsque l'id d'un objet collaborateur ne correspond pas à l'id collaborateur en paramètre + /// + public class CollaborateurIncompatibleException : Exception + { + /// + /// Initialise une nouvelle instance de la classe class. + /// + public CollaborateurIncompatibleException() + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + public CollaborateurIncompatibleException(string message) : base(message) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + public CollaborateurIncompatibleException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + protected CollaborateurIncompatibleException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} diff --git a/EPAServeur/Exceptions/CollaborateurNotFoundException.cs b/EPAServeur/Exceptions/CollaborateurNotFoundException.cs index a753e13..3efd39d 100644 --- a/EPAServeur/Exceptions/CollaborateurNotFoundException.cs +++ b/EPAServeur/Exceptions/CollaborateurNotFoundException.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Runtime.Serialization; using System.Threading.Tasks; namespace EPAServeur.Exceptions @@ -10,5 +11,37 @@ namespace EPAServeur.Exceptions /// public class CollaborateurNotFoundException : Exception { + /// + /// Initialise une nouvelle instance de la classe class. + /// + public CollaborateurNotFoundException() + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + public CollaborateurNotFoundException(string message) : base(message) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + public CollaborateurNotFoundException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + protected CollaborateurNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } } } diff --git a/EPAServeur/Exceptions/CollaborateurPartiException.cs b/EPAServeur/Exceptions/CollaborateurPartiException.cs new file mode 100644 index 0000000..53ded23 --- /dev/null +++ b/EPAServeur/Exceptions/CollaborateurPartiException.cs @@ -0,0 +1,27 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Threading.Tasks; + +namespace EPAServeur.Exceptions +{ + public class CollaborateurPartiException : Exception + { + public CollaborateurPartiException() + { + } + + public CollaborateurPartiException(string message) : base(message) + { + } + + public CollaborateurPartiException(string message, Exception innerException) : base(message, innerException) + { + } + + protected CollaborateurPartiException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} diff --git a/EPAServeur/Exceptions/ListeIdsCollaborateursVideException.cs b/EPAServeur/Exceptions/ListeIdsCollaborateursVideException.cs new file mode 100644 index 0000000..938b9ff --- /dev/null +++ b/EPAServeur/Exceptions/ListeIdsCollaborateursVideException.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Threading.Tasks; + +namespace EPAServeur.Exceptions +{ + /// + /// Exception à jeter lorsque la liste des ids collaborateurs à mettre à jour pour le réferent EP est null ou vide + /// + public class ListeIdsCollaborateursVideException : Exception + { + /// + /// Initialise une nouvelle instance de la classe class. + /// + public ListeIdsCollaborateursVideException() + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + public ListeIdsCollaborateursVideException(string message) : base(message) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + public ListeIdsCollaborateursVideException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + protected ListeIdsCollaborateursVideException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} diff --git a/EPAServeur/Exceptions/NoteIdImcompatibleException.cs b/EPAServeur/Exceptions/NoteIdImcompatibleException.cs index 8a3e5f3..cf6193f 100644 --- a/EPAServeur/Exceptions/NoteIdImcompatibleException.cs +++ b/EPAServeur/Exceptions/NoteIdImcompatibleException.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Runtime.Serialization; using System.Threading.Tasks; namespace EPAServeur.Exceptions @@ -10,5 +11,37 @@ namespace EPAServeur.Exceptions /// public class NoteIdImcompatibleException : Exception { + /// + /// Initialise une nouvelle instance de la classe class. + /// + public NoteIdImcompatibleException() + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + public NoteIdImcompatibleException(string message) : base(message) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + public NoteIdImcompatibleException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + protected NoteIdImcompatibleException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } } } diff --git a/EPAServeur/Exceptions/NoteInvalideException.cs b/EPAServeur/Exceptions/NoteInvalideException.cs index e85526e..905ed77 100644 --- a/EPAServeur/Exceptions/NoteInvalideException.cs +++ b/EPAServeur/Exceptions/NoteInvalideException.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Runtime.Serialization; using System.Threading.Tasks; namespace EPAServeur.Exceptions @@ -10,5 +11,37 @@ namespace EPAServeur.Exceptions /// public class NoteInvalideException : Exception { + /// + /// Initialise une nouvelle instance de la classe class. + /// + public NoteInvalideException() + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + public NoteInvalideException(string message) : base(message) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + public NoteInvalideException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + protected NoteInvalideException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } } } diff --git a/EPAServeur/Exceptions/NoteNotFoundException.cs b/EPAServeur/Exceptions/NoteNotFoundException.cs index 4244e57..2abe596 100644 --- a/EPAServeur/Exceptions/NoteNotFoundException.cs +++ b/EPAServeur/Exceptions/NoteNotFoundException.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Runtime.Serialization; using System.Threading.Tasks; namespace EPAServeur.Exceptions @@ -10,6 +11,37 @@ namespace EPAServeur.Exceptions /// public class NoteNotFoundException : Exception { + /// + /// Initialise une nouvelle instance de la classe class. + /// + public NoteNotFoundException() + { + } + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + public NoteNotFoundException(string message) : base(message) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + public NoteNotFoundException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + protected NoteNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } } } diff --git a/EPAServeur/Exceptions/ReferentIncompatibleException.cs b/EPAServeur/Exceptions/ReferentIncompatibleException.cs new file mode 100644 index 0000000..346f2a3 --- /dev/null +++ b/EPAServeur/Exceptions/ReferentIncompatibleException.cs @@ -0,0 +1,47 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.Threading.Tasks; + +namespace EPAServeur.Exceptions +{ + /// + /// Excpetion à jeter lorsque que l'id d'un référent passé au paramètre ne correspond à celui de l'id de l'objet collaborateur du référent + /// + public class ReferentIncompatibleException : Exception + { + /// + /// Initialise une nouvelle instance de la classe class. + /// + public ReferentIncompatibleException() + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + public ReferentIncompatibleException(string message) : base(message) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + public ReferentIncompatibleException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + protected ReferentIncompatibleException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } + } +} diff --git a/EPAServeur/Exceptions/ReferentNotFoundException.cs b/EPAServeur/Exceptions/ReferentNotFoundException.cs index 3559ada..b25a944 100644 --- a/EPAServeur/Exceptions/ReferentNotFoundException.cs +++ b/EPAServeur/Exceptions/ReferentNotFoundException.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Runtime.Serialization; using System.Threading.Tasks; namespace EPAServeur.Exceptions @@ -10,5 +11,37 @@ namespace EPAServeur.Exceptions /// public class ReferentNotFoundException : Exception { + /// + /// Initialise une nouvelle instance de la classe class. + /// + public ReferentNotFoundException() + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + public ReferentNotFoundException(string message) : base(message) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + public ReferentNotFoundException(string message, Exception innerException) : base(message, innerException) + { + } + + /// + /// Initialise une nouvelle instance de la classe class. + /// + /// + /// + protected ReferentNotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) + { + } } }