Skip to content
Documentation

InvalidSqlFloatValueException Class

Exception thrown when an attempt is made to insert an invalid floating-point value, such as NaN or Infinity, into a SQL Server FLOAT column.

public sealed class InvalidSqlFloatValueException : HAKOM.ErrorHandling.Core.Net.Api.HakomException

Inheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 InvalidSqlFloatValueException

Some data bases do not support storing special double values like double.NaN, double.PositiveInfinity, or double.NegativeInfinity. Attempting to insert such values will result in a DbException. Ensure that any floating-point value written to a SQL FLOAT column is a finite number before calling the store method.

This exception is identified by error code HK12045.

InvalidSqlFloatValueException.EquivalentHttpStatusCode Property

Section titled “InvalidSqlFloatValueException.EquivalentHttpStatusCode Property”

When unhandled within an HTTP request, this exception produces HTTP 400 (Bad Request).

protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }

System.Net.HttpStatusCode

© 2026 Volue.Version v0.6.38017 November 2026