Show / Hide Table of Contents

Class OffendingException<T>

Describes an Exception that is thrown when a problem has been found with an object, as well as being a base class for exceptions that include information on the object or value that caused them.

Inheritance
object
Exception
OffendingException<T>
ClassNotInstantiableException
EmptyCollectionException
IncompleteTypeException
InvalidMethodSignatureException
InvalidTypeException
InvalidUriException
MissingResourceException
MissingTypeException
NullItemException
Implements
ISerializable
Inherited Members
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 OffendingException<T> : Exception, ISerializable
Type Parameters
Name Description
T

Constructors

| Edit this page View Source

OffendingException()

Initializes a new instance of the OffendingException<T> class.

Declaration
public OffendingException()
| Edit this page View Source

OffendingException(Exception)

Initializes a new instance of the OffendingException<T> class.

Declaration
public OffendingException(Exception inner)
Parameters
Type Name Description
Exception inner

Exception that is the cause of this exception.

| Edit this page View Source

OffendingException(Exception, T)

Initializes a new instance of the OffendingException<T> class.

Declaration
public OffendingException(Exception inner, T offendingObject)
Parameters
Type Name Description
Exception inner

Exception that is the cause of this exception.

T offendingObject

Object/value that is the cause of the exception.

| Edit this page View Source

OffendingException(string)

Initializes a new instance of the OffendingException<T> class.

Declaration
public OffendingException(string message)
Parameters
Type Name Description
string message

Message that describes the exception.

| Edit this page View Source

OffendingException(string, Exception)

Initializes a new instance of the OffendingException<T> class.

Declaration
public OffendingException(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

OffendingException(string, Exception, T)

Initializes a new instance of the OffendingException<T> class.

Declaration
public OffendingException(string message, Exception inner, T offendingObject)
Parameters
Type Name Description
string message

Message that describes the exception.

Exception inner

Exception that is the cause of this exception.

T offendingObject

Object/value that is the cause of the exception.

| Edit this page View Source

OffendingException(string, T)

Initializes a new instance of the OffendingException<T> class.

Declaration
public OffendingException(string message, T offendingObject)
Parameters
Type Name Description
string message

Message that describes the exception.

T offendingObject

Object/value that is the cause of the exception.

| Edit this page View Source

OffendingException(T)

Initializes a new instance of the OffendingException<T> class.

Declaration
public OffendingException(T offendingObject)
Parameters
Type Name Description
T offendingObject

Object/value that is the cause of the exception.

Properties

| Edit this page View Source

OffendingObject

Gets the object/value that is the cause of the exception.

Declaration
public T OffendingObject { get; }
Property Value
Type Description
T

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