StartOfTimeIsAfterGivenDateException Class
HAKOM.TSM.Net.Api.Time.Extensions.Exceptions
Section titled “HAKOM.TSM.Net.Api.Time.Extensions.Exceptions”Gets thrown when StartDate is greater than the given date in the alignment methods: align previous or align next.
public sealed class StartOfTimeIsAfterGivenDateException : HAKOM.ErrorHandling.Core.Net.Api.HakomExceptionInheritance System.Object 🡒 System.Exception 🡒 HakomException 🡒 StartOfTimeIsAfterGivenDateException
Remarks
Section titled “Remarks”When aligning a System.DateTimeOffset to the grid of the time series with AlignWithPrevious(this DateTimeOffset, IInterval, ITimeZone, DateTimeOffset, IIntervalFactory, ITimeSeriesDataFactory) or AlignWithNext(this DateTimeOffset, IInterval, ITimeZone, DateTimeOffset, IIntervalFactory, ITimeSeriesDataFactory), the specified StartOfTime must be before the System.DateTimeOffset to be aligned.
This exception is identified by error code HK15035.
Properties
Section titled “Properties”StartOfTimeIsAfterGivenDateException.EquivalentHttpStatusCode Property
Section titled “StartOfTimeIsAfterGivenDateException.EquivalentHttpStatusCode Property”When unhandled within an HTTP request, this exception produces HTTP 400 (Bad Request).
protected override System.Net.HttpStatusCode EquivalentHttpStatusCode { protected get; }Property Value
Section titled “Property Value”Was this page helpful?Thanks for your feedback!