ColumnIsNullException Class
Thrown when attempting to read null values with not-nullable return types.
public sealed class ColumnIsNullException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 ColumnIsNullException
Remarks
Section titled “Remarks”When using any Read* method in SqlStorageProvider<TConnection,TCommand,TNativeParameter,TReader,TParameter,TParameterFactory> without the “nullValue” parameter and an expected not-nullable return value, this exception is thrown if the read value is null. Either change the expected return value to a nullable type, provide the “nullValue” parameter to return a default not-nullable value if the read column is null, or ensure that the column will not return a null value when read.
This exception is identified by error code HK12025.
Properties
Section titled “Properties”ColumnIsNullException.EquivalentHttpStatusCode Property
Section titled “ColumnIsNullException.EquivalentHttpStatusCode Property”When unhandled within an HTTP request, this exception produces HTTP 500 (Internal Server Error).
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }