Show / Hide Table of Contents

Class EmptyCollectionException

Exception that is thrown when a collection is empty when a method required it to have at lest one element.

Inheritance
object
Exception
OffendingException<IEnumerable>
EmptyCollectionException
Implements
ISerializable
Inherited Members
OffendingException<IEnumerable>.OffendingObject
Exception.GetBaseException()
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: TheXDS.MCART.Exceptions
Assembly: MCART.dll
Syntax
[Serializable]
public class EmptyCollectionException : OffendingException<IEnumerable>, ISerializable

Constructors

| Edit this page View Source

EmptyCollectionException()

Initializes a new instance of the EmptyCollectionException class.

Declaration
public EmptyCollectionException()
| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

| Edit this page View Source

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.

Implements

ISerializable

Extension Methods

Objects.ShallowCopyTo(object, object, Type)
ObjectExtensions.FieldsOf<T>(object)
ObjectExtensions.GetAttribute<T>(object)
ObjectExtensions.GetAttributes<T>(object)
ObjectExtensions.HasAttrValue<TAttribute, TValue>(object, out TValue)
ObjectExtensions.HasAttribute<T>(object)
ObjectExtensions.HasAttribute<T>(object, out T?)
ObjectExtensions.HasAttributes<T>(object, out IEnumerable<T>?)
ObjectExtensions.Is(object?, object?)
ObjectExtensions.IsEither(object, IEnumerable)
ObjectExtensions.IsEither(object, params object[])
ObjectExtensions.IsNeither(object, IEnumerable)
ObjectExtensions.IsNeither(object, params object[])
ObjectExtensions.IsNot(object?, object?)
ObjectExtensions.PropertiesOf<T>(object)
ObjectExtensions.WhichAre(object, IEnumerable<object>)
ObjectExtensions.WhichAre(object, params object[])
Common.IfNotNull<T>(T?, Action<T>)
Objects.Itself<T>(T)
Objects.ShallowClone<T>(T)
Objects.ShallowCopyTo<T>(T, T)
CollectionExtensions.PushInto<TItem, TCollection>(TItem, ICollection<TCollection>)
DictionaryExtensions.PushInto<TKey, TValue>(TValue, TKey, IDictionary<TKey, TValue>)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX