Class ItemAlreadyExistException
Exception class for denoting that the same object exists in collection.
Inheritance
System.Object
System.Exception
System.ApplicationException
ItemAlreadyExistException
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 ItemAlreadyExistException : ApplicationException, ISerializable, _Exception
Constructors
ItemAlreadyExistException()
Initializes a new instance of the ItemAlreadyExistException class.
Declaration
public ItemAlreadyExistException()
ItemAlreadyExistException(SerializationInfo, StreamingContext)
Declaration
protected ItemAlreadyExistException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | |
System.Runtime.Serialization.StreamingContext | context |
ItemAlreadyExistException(String)
Initializes a new instance of the ItemAlreadyExistException class.
Declaration
public ItemAlreadyExistException(string objectId)
Parameters
Type | Name | Description |
---|---|---|
System.String | objectId | The object identifier. |
ItemAlreadyExistException(String, Exception)
Initializes a new instance of the ItemAlreadyExistException class.
Declaration
public ItemAlreadyExistException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.Exception | innerException | The exception that is the cause of the current exception. |
ItemAlreadyExistException(String, String)
Initializes a new instance of the ItemAlreadyExistException class.
Declaration
public ItemAlreadyExistException(string message, string objectId)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message. |
System.String | objectId | The object identifier. |
Properties
ObjectId
Gets the object identifier.
Declaration
public string ObjectId { get; }
Property Value
Type | Description |
---|---|
System.String | The object identifier. |
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Extension Methods
See Also
System.ApplicationException