2024-05-09 22:08:07 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Runtime.Serialization;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ProjectStormtrooper.Exceptions;
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Класс, описывающий ошибку, что по указанной позиции нет элемента
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
internal class ObjectNotFoundException:ApplicationException
|
|
|
|
|
{
|
2024-05-14 10:01:44 +04:00
|
|
|
|
public ObjectNotFoundException(int i): base("Не найден объект по позиции " + i) { }
|
2024-05-09 22:08:07 +04:00
|
|
|
|
public ObjectNotFoundException() : base() { }
|
|
|
|
|
public ObjectNotFoundException(string message) : base(message) { }
|
|
|
|
|
public ObjectNotFoundException(string message, Exception exception) : base(message, exception) { }
|
|
|
|
|
protected ObjectNotFoundException(SerializationInfo info, StreamingContext contex) : base(info, contex) { }
|
|
|
|
|
|
|
|
|
|
}
|