Class ItemNotFoundException
Представляет исключение для не найденного элемента в коллекции.
Inheritance
System.Object
System.Exception
System.ApplicationException
ItemNotFoundException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: Terrasoft.Common
Assembly: Terrasoft.Common.dll
Syntax
[Serializable]
public class ItemNotFoundException : ApplicationException, ISerializable, _Exception
Constructors
ItemNotFoundException()
Инициализирует экземпляр класса ItemNotFoundException.
Declaration
public ItemNotFoundException()
ItemNotFoundException(SerializationInfo, StreamingContext)
Declaration
protected ItemNotFoundException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
ItemNotFoundException(String)
Инициализирует экземпляр класса ItemNotFoundException для заданного объекта.
Declaration
public ItemNotFoundException(string objectName)
Parameters
Type | Name | Description |
---|---|---|
System.String | objectName | Имя объекта. |
ItemNotFoundException(String, Exception)
Инициализирует экземпляр класс ItemNotFoundException, используя заданное сообщение об ошибке и ссылку на внутреннее исключение, которое стало причиной данного исключения.
Declaration
public ItemNotFoundException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Сообщение об ошибке. |
System.Exception | innerException | Внутреннее исключение. |
ItemNotFoundException(String, String[])
Инициализирует экземпляр класса ItemNotFoundException для заданного объекта, используя заданное сообщение об ошибке.
Declaration
public ItemNotFoundException(string message, params string[] objectNames)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Сообщение об ошибке. |
System.String[] | objectNames | Имя объекта. |
ItemNotFoundException(String, MessageType)
Инициализирует экземпляр класса ItemNotFoundException для заданного объекта, используя заданное сообщение об ошибке.
Declaration
public ItemNotFoundException(string message, MessageType messageType)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | Сообщение об ошибке. |
MessageType | messageType | Тип сообщения. |
Properties
MessageType
Тип сообщения.
Declaration
public MessageType MessageType { get; }
Property Value
Type | Description |
---|---|
MessageType |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception