|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
@ -12,40 +12,54 @@ namespace Biblioteque_de_Class
|
|
|
|
|
{
|
|
|
|
|
public NotAllowedException(string message) : base(message)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
protected NotAllowedException(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public class AlreadyUsedException : Exception
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class AlreadyUsedException : Exception, ISerializable
|
|
|
|
|
{
|
|
|
|
|
public AlreadyUsedException(string message) : base(message)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
protected AlreadyUsedException(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public class NotFoundException : Exception
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class NotFoundException : Exception, ISerializable
|
|
|
|
|
{
|
|
|
|
|
public NotFoundException(string message) : base(message)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
protected NotFoundException(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public class AlreadyExistException : Exception
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class AlreadyExistException : Exception, ISerializable
|
|
|
|
|
{
|
|
|
|
|
public AlreadyExistException(string message) : base(message)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
protected AlreadyExistException(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class FileException : Exception
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class FileException : Exception, ISerializable
|
|
|
|
|
{
|
|
|
|
|
public FileException(string message) : base(message)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
protected FileException(SerializationInfo info, StreamingContext context) : base(info, context)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|