Class NullItemException
Exception that is thrown when an element in a collection is unexpectedly equal to null.
Implements
Inherited Members
Namespace: TheXDS.MCART.Exceptions
Assembly: MCART.dll
Syntax
[Serializable]
public class NullItemException : OffendingException<IList>, ISerializable
Constructors
| Edit this page View SourceNullItemException()
Initializes a new instance of the NullItemException class.
Declaration
public NullItemException()
NullItemException(IList)
Initializes a new instance of the NullItemException class.
Declaration
public NullItemException(IList offendingCollection)
Parameters
Type | Name | Description |
---|---|---|
IList | offendingCollection | Collection in which a null element has been found. |
NullItemException(Exception)
Initializes a new instance of the NullItemException.
Declaration
public NullItemException(Exception inner)
Parameters
Type | Name | Description |
---|---|---|
Exception | inner | Exception that is the cause of this exception. |
NullItemException(Exception, IList)
Initializes a new instance of the NullItemException.
Declaration
public NullItemException(Exception inner, IList offendingCollection)
Parameters
Type | Name | Description |
---|---|---|
Exception | inner | Exception that is the cause of this exception. |
IList | offendingCollection | Collection in which a null element has been found. |
NullItemException(string)
Initializes a new instance of the NullItemException.
Declaration
public NullItemException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message that describes the exception. |
NullItemException(string, IList)
Initializes a new instance of the NullItemException.
Declaration
public NullItemException(string message, IList offendingCollection)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message that describes the exception. |
IList | offendingCollection | Collection in which a null element has been found. |
NullItemException(string, Exception)
Initializes a new instance of the NullItemException.
Declaration
public NullItemException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message that describes the exception. |
Exception | inner | Exception that is the cause of this exception. |
NullItemException(string, Exception, IList)
Initializes a new instance of the NullItemException.
Declaration
public NullItemException(string message, Exception inner, IList offendingCollection)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message that describes the exception. |
Exception | inner | Exception that is the cause of this exception. |
IList | offendingCollection | Collection in which a null element has been found. |
Properties
| Edit this page View SourceNullIndex
Gets the index at which an element was unexpectedly null inside of the collection.
Declaration
public int NullIndex { get; set; }
Property Value
Type | Description |
---|---|
int |