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.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace EPAServeur.Exceptions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 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
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ReferentIncompatibleException : Exception
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initialise une nouvelle instance de la classe <see cref="ReferentIncompatibleException"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public ReferentIncompatibleException()
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initialise une nouvelle instance de la classe <see cref="ReferentIncompatibleException"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="message"></param>
|
|
|
|
|
public ReferentIncompatibleException(string message) : base(message)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initialise une nouvelle instance de la classe <see cref="ReferentIncompatibleException"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="message"></param>
|
|
|
|
|
/// <param name="innerException"></param>
|
|
|
|
|
public ReferentIncompatibleException(string message, Exception innerException) : base(message, innerException)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Initialise une nouvelle instance de la classe <see cref="ReferentIncompatibleException"/> class.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="info"></param>
|
|
|
|
|
/// <param name="context"></param>
|
|
|
|
|
protected ReferentIncompatibleException(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|