Class SymbolicParameterException
- Namespace
- Utils.Mathematics.Expressions
- Assembly
- Utils.Mathematics.dll
Thrown when the symbolic transformation target parameter cannot be resolved from a LambdaExpression: the named parameter was not found, is present more than once (ambiguous), or the explicit parameter instance is not declared in the given lambda. This is a caller-error: InvalidInput classification in SymbolicTransformationResult.
public sealed class SymbolicParameterException : InvalidOperationException, ISerializable
- Inheritance
-
SymbolicParameterException
- Implements
- Inherited Members
- Extension Methods
Remarks
Using a dedicated subclass (rather than InvalidOperationException directly) allows TryDerivate<T>(LambdaExpression, string, bool) and TryIntegrate<T>(LambdaExpression, string) to distinguish a genuine caller-error (wrong parameter name) from an internal failure that happens to produce an InvalidOperationException for a different reason.
Constructors
SymbolicParameterException(string)
Initializes a new instance with a descriptive message.
public SymbolicParameterException(string message)
Parameters
messagestring
SymbolicParameterException(string, Exception)
Initializes a new instance with a message and an inner exception.
public SymbolicParameterException(string message, Exception innerException)