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
Implements
Inherited Members
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 SourceOffendingException()
Initializes a new instance of the OffendingException<T> class.
Declaration
public OffendingException()
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. |
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. |
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. |
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. |
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. |
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. |
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 SourceOffendingObject
Gets the object/value that is the cause of the exception.
Declaration
public T OffendingObject { get; }
Property Value
| Type | Description |
|---|---|
| T |