Class EmptyCollectionException
Exception that is thrown when a collection is empty when a method required it to have at lest one element.
Implements
Inherited Members
Namespace: TheXDS.MCART.Exceptions
Assembly: MCART.dll
Syntax
[Serializable]
public class EmptyCollectionException : OffendingException<IEnumerable>, ISerializable
Constructors
| Edit this page View SourceEmptyCollectionException()
Initializes a new instance of the EmptyCollectionException class.
Declaration
public EmptyCollectionException()
EmptyCollectionException(IEnumerable)
Initializes a new instance of the EmptyCollectionException class.
Declaration
public EmptyCollectionException(IEnumerable offendingCollection)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable | offendingCollection | Empty collection that produced this exception. |
EmptyCollectionException(Exception)
Initializes a new instance of the EmptyCollectionException class.
Declaration
public EmptyCollectionException(Exception inner)
Parameters
Type | Name | Description |
---|---|---|
Exception | inner | Exception that is the cause of this exception. |
EmptyCollectionException(Exception, IEnumerable)
Initializes a new instance of the EmptyCollectionException class.
Declaration
public EmptyCollectionException(Exception inner, IEnumerable offendingCollection)
Parameters
Type | Name | Description |
---|---|---|
Exception | inner | Exception that is the cause of this exception. |
IEnumerable | offendingCollection | Empty collection that produced this exception. |
EmptyCollectionException(string)
Initializes a new instance of the EmptyCollectionException class.
Declaration
public EmptyCollectionException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message that describes the exception. |
EmptyCollectionException(string, IEnumerable)
Initializes a new instance of the EmptyCollectionException class.
Declaration
public EmptyCollectionException(string message, IEnumerable offendingCollection)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message that describes the exception. |
IEnumerable | offendingCollection | Empty collection that produced this exception. |
EmptyCollectionException(string, Exception)
Initializes a new instance of the EmptyCollectionException class.
Declaration
public EmptyCollectionException(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. |
EmptyCollectionException(string, Exception, IEnumerable)
Initializes a new instance of the EmptyCollectionException class.
Declaration
public EmptyCollectionException(string message, Exception inner, IEnumerable offendingCollection)
Parameters
Type | Name | Description |
---|---|---|
string | message | Message that describes the exception. |
Exception | inner | Exception that is the cause of this exception. |
IEnumerable | offendingCollection | Empty collection that produced this exception. |