test3 exception
continuous-integration/drone/push Build is passing Details

pull/19/head
Matheo THIERRY 2 years ago
parent 6d567c9058
commit 7304a8e6da

@ -12,40 +12,54 @@ namespace Biblioteque_de_Class
{ {
public NotAllowedException(string message) : base(message) public NotAllowedException(string message) : base(message)
{ {
} }
protected NotAllowedException(SerializationInfo info, StreamingContext context) : base(info, context) 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) 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) 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) public AlreadyExistException(string message) : base(message)
{ {
} }
protected AlreadyExistException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
} }
[Serializable]
public class FileException : Exception public class FileException : Exception, ISerializable
{ {
public FileException(string message) : base(message) public FileException(string message) : base(message)
{ {
} }
protected FileException(SerializationInfo info, StreamingContext context) : base(info, context)
{
}
} }
} }

Loading…
Cancel
Save