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