Table of Contents

Class ParameterTypeMismatchException

Namespace
xFunc.Maths.Analyzers.TypeAnalyzers
Assembly
xFunc.Maths.dll

Represents an exception when the type of the actual argument does not match the expected parameter type.

[Serializable]
public class ParameterTypeMismatchException : Exception, ISerializable
Inheritance
ParameterTypeMismatchException
Implements
Derived
Inherited Members

Constructors

ParameterTypeMismatchException()

Initializes a new instance of the ParameterTypeMismatchException class.

public ParameterTypeMismatchException()

ParameterTypeMismatchException(string)

Initializes a new instance of the ParameterTypeMismatchException class.

public ParameterTypeMismatchException(string message)

Parameters

message string

The message that describes the error.

ParameterTypeMismatchException(string, Exception)

Initializes a new instance of the ParameterTypeMismatchException class.

public ParameterTypeMismatchException(string message, Exception inner)

Parameters

message string

The error message that explains the reason for the exception.

inner Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

ParameterTypeMismatchException(ResultTypes, ResultTypes)

Initializes a new instance of the ParameterTypeMismatchException class.

public ParameterTypeMismatchException(ResultTypes expected, ResultTypes actual)

Parameters

expected ResultTypes

The expected parameter type.

actual ResultTypes

The actual parameter type.

ParameterTypeMismatchException(ResultTypes, ResultTypes, string)

Initializes a new instance of the ParameterTypeMismatchException class.

public ParameterTypeMismatchException(ResultTypes expected, ResultTypes actual, string message)

Parameters

expected ResultTypes

The expected parameter type.

actual ResultTypes

The actual parameter type.

message string

The error message.

Properties

Actual

Gets the actual parameter type.

public ResultTypes Actual { get; }

Property Value

ResultTypes

The actual parameter type.

Expected

Gets the expected parameter type.

public ResultTypes Expected { get; }

Property Value

ResultTypes

The expected parameter type.