Class UnsupportedScalarOperationException
- Namespace
- Utils.Mathematics.Expressions
- Assembly
- Utils.Mathematics.dll
Thrown when a required scalar math operation (e.g. Log, Sin, Sqrt) is not
available for the scalar type used to build a symbolic derivative/integral. This is a specialized
NotSupportedException so callers can categorize "operation unavailable for scalar type
T" (see UnsupportedScalarOperation) distinctly from other
unsupported-expression failures, while existing catch (NotSupportedException) sites keep working.
public sealed class UnsupportedScalarOperationException : NotSupportedException, ISerializable
- Inheritance
-
UnsupportedScalarOperationException
- Implements
- Inherited Members
- Extension Methods
Constructors
UnsupportedScalarOperationException(string, Type)
Initializes a new instance of the UnsupportedScalarOperationException class.
public UnsupportedScalarOperationException(string operationName, Type scalarType)
Parameters
operationNamestringName of the unavailable operation.
scalarTypeTypeScalar type for which the operation is unavailable.
Properties
OperationName
Gets the name of the operation that was not available (e.g. Log).
public string OperationName { get; }
Property Value
ScalarType
Gets the scalar type for which OperationName was unavailable.
public Type ScalarType { get; }