23 lines
844 B
C#
23 lines
844 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Runtime.Serialization;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ProjectCruiser.Exceptions;
|
|||
|
|
|||
|
[Serializable]
|
|||
|
internal class ObjectAlreadyInCollectionException : ApplicationException
|
|||
|
{
|
|||
|
public ObjectAlreadyInCollectionException(int index) : base("Такой объект уже присутствует в коллекции. Позиция " + index) { }
|
|||
|
|
|||
|
public ObjectAlreadyInCollectionException() : base() { }
|
|||
|
|
|||
|
public ObjectAlreadyInCollectionException(string message) : base(message) { }
|
|||
|
|
|||
|
public ObjectAlreadyInCollectionException(string message, Exception exception) : base(message, exception) { }
|
|||
|
|
|||
|
protected ObjectAlreadyInCollectionException(SerializationInfo info, StreamingContext contex) : base(info, contex) { }
|
|||
|
}
|