ParserThrewAnErrorException Class
This exception is thrown when a value from an SQL database (with Select or TrySelect) could not be parsed to the desired object.
public sealed class ParserThrewAnErrorException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 ParserThrewAnErrorException
Remarks
Section titled “Remarks”When using any overload of Select<TResult>(string, Func<TReader,Task<TResult>>, CancellationToken) or TrySelect<TResult>(string, Func<TReader,Task<TResult>>, bool, CancellationToken) and the given parser throws an exception this exception is thrown as a wrapper exception with the exception of the parser as inner exception.
This exception is identified by error code HK12032.
Properties
Section titled “Properties”ParserThrewAnErrorException.EquivalentHttpStatusCode Property
Section titled “ParserThrewAnErrorException.EquivalentHttpStatusCode Property”When unhandled within an HTTP request, this exception produces HTTP 500 (Internal Server Error).
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }Property Value
Section titled “Property Value”Was this page helpful?Thanks for your feedback!