Class InvalidReturnValueException
Exception that is thrown when it's detected that a function returned an incorrect value without generating an exception itself.
Implements
Inherited Members
Namespace: TheXDS.MCART.Exceptions
Assembly: MCART.dll
Syntax
[Serializable]
public class InvalidReturnValueException : Exception, ISerializable
Constructors
| Edit this page View SourceInvalidReturnValueException()
Initializes a new instance of the InvalidReturnValueException class.
Declaration
public InvalidReturnValueException()
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. |
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 |
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 |
Exception | inner | Exception that is the cause of this exception. |
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. |
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. |
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. |
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 SourceOffendingFunction
Gets a reference to the delegate that is the cause of the exception.
Declaration
public Delegate? OffendingFunction { get; }
Property Value
Type | Description |
---|---|
Delegate |
OffendingFunctionName
Gets the name of the method that is the cause of the exception.
Declaration
public string? OffendingFunctionName { get; }
Property Value
Type | Description |
---|---|
string |
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 |