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
messagestringThe message that describes the error.
ParameterTypeMismatchException(string, Exception)
Initializes a new instance of the ParameterTypeMismatchException class.
public ParameterTypeMismatchException(string message, Exception inner)
Parameters
messagestringThe error message that explains the reason for the exception.
innerExceptionThe 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
expectedResultTypesThe expected parameter type.
actualResultTypesThe actual parameter type.
ParameterTypeMismatchException(ResultTypes, ResultTypes, string)
Initializes a new instance of the ParameterTypeMismatchException class.
public ParameterTypeMismatchException(ResultTypes expected, ResultTypes actual, string message)
Parameters
expectedResultTypesThe expected parameter type.
actualResultTypesThe actual parameter type.
messagestringThe 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.