Show / Hide Table of Contents

Class InvalidReturnValueException

Exception that is thrown when it's detected that a function returned an incorrect value without generating an exception itself.

Inheritance
object
Exception
InvalidReturnValueException
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 InvalidReturnValueException : Exception, ISerializable

Constructors

| Edit this page View Source

InvalidReturnValueException()

Initializes a new instance of the InvalidReturnValueException class.

Declaration
public InvalidReturnValueException()
| Edit this page View Source

InvalidReturnValueException(Delegate)

Initializes a new instance of the InvalidReturnValueException class.

Declaration
public InvalidReturnValueException(Delegate call)
Parameters
Type Name Description
Delegate call

Delegate whose result produced the exception.

| Edit this page View Source

InvalidReturnValueException(Delegate, object?)

Initializes a new instance of the InvalidReturnValueException class.

Declaration
public InvalidReturnValueException(Delegate call, object? returnValue)
Parameters
Type Name Description
Delegate call

Delegate whose result produced the exception.

object returnValue

Invalid value returned by call.

| Edit this page View Source

InvalidReturnValueException(Delegate, object?, Exception?)

Initializes a new instance of the InvalidReturnValueException class.

Declaration
public InvalidReturnValueException(Delegate call, object? returnValue, Exception? inner)
Parameters
Type Name Description
Delegate call

Delegate whose result produced the exception.

object returnValue

Invalid value returned by call.

Exception inner

Exception that is the cause of this exception.

| Edit this page View Source

InvalidReturnValueException(string)

Initializes a new instance of the InvalidReturnValueException class.

Declaration
public InvalidReturnValueException(string methodName)
Parameters
Type Name Description
string methodName

Name of the method whose result produced this exception.

| Edit this page View Source

InvalidReturnValueException(string, Exception?)

Initializes a new instance of the InvalidReturnValueException class.

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

InvalidReturnValueException(string, object?)

Initializes a new instance of the InvalidReturnValueException class.

Declaration
public InvalidReturnValueException(string methodName, object? returnValue)
Parameters
Type Name Description
string methodName

Name of the method whose result produced this exception.

object returnValue

Invalid value returned by the method.

| Edit this page View Source

InvalidReturnValueException(string, object?, Exception?)

Initializes a new instance of the InvalidReturnValueException class.

Declaration
public InvalidReturnValueException(string methodName, object? returnValue, Exception? inner)
Parameters
Type Name Description
string methodName

Name of the method whose result produced this exception.

object returnValue

Invalid value returned by the method.

Exception inner

Exception that is the cause of this exception.

Properties

| Edit this page View Source

OffendingFunction

Gets a reference to the delegate that is the cause of the exception.

Declaration
public Delegate? OffendingFunction { get; }
Property Value
Type Description
Delegate
| Edit this page View Source

OffendingFunctionName

Gets the name of the method that is the cause of the exception.

Declaration
public string? OffendingFunctionName { get; }
Property Value
Type Description
string
| Edit this page View Source

OffendingReturnValue

Gets the value returned by the method that is the cause of the exception.

Declaration
public object? OffendingReturnValue { get; }
Property Value
Type Description
object

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