UnitConversionExistsAlreadyException Class
HAKOM.TSM.Net.Api.Units.Persistence.Exceptions
Section titled “HAKOM.TSM.Net.Api.Units.Persistence.Exceptions”Indicates that an attempt was made to save a unit conversion with the same properties (i.e. Unit/ConversionUnit combination) as one that already exists.
public sealed class UnitConversionExistsAlreadyException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 UnitConversionExistsAlreadyException
Remarks
Section titled “Remarks”Either delete the existing unit conversion from the store, modify the new one to represent a unique conversion or call SaveOrUpdate(IConstantUnitConversion, CancellationToken) instead of Save(IConstantUnitConversion, CancellationToken) if an update was intended.
This exception is identified by error code HK15030.
Properties
Section titled “Properties”UnitConversionExistsAlreadyException.EquivalentHttpStatusCode Property
Section titled “UnitConversionExistsAlreadyException.EquivalentHttpStatusCode Property”When unhandled within an HTTP request, this exception produces HTTP 409 (Conflict).
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }Property Value
Section titled “Property Value”Was this page helpful?Thanks for your feedback!