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
- messagestring
- The message that describes the error. 
ParameterTypeMismatchException(string, Exception)
Initializes a new instance of the ParameterTypeMismatchException class.
public ParameterTypeMismatchException(string message, Exception inner)Parameters
- messagestring
- The error message that explains the reason for the exception. 
- innerException
- 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
- expectedResultTypes
- The expected parameter type. 
- actualResultTypes
- 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
- expectedResultTypes
- The expected parameter type. 
- actualResultTypes
- The actual parameter type. 
- messagestring
- 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.