Class InvalidParamterValueException
- Namespace
- YndigoBlue.Velocity.Exceptions
- Assembly
- YndigoBlue.Velocity.dll
Thrown when a method parameter receives an invalid value.
public class InvalidParamterValueException : Exception, ISerializable
- Inheritance
-
InvalidParamterValueException
- Implements
Remarks
This exception occurs when a parameter value does not meet the method's requirements or constraints. Common scenarios include null values for non-nullable parameters, values outside acceptable ranges, invalid enum values, or type mismatches that cannot be resolved automatically.
Constructors
- InvalidParamterValueException()
Initializes a new instance of the InvalidParamterValueException class.
- InvalidParamterValueException(string)
Initializes a new instance of the InvalidParamterValueException class with a specified error message.
Properties
- ParamaterName
Gets or sets the name of the parameter that received an invalid value.
- Type
Gets or sets the expected type for the parameter.