HAKOM.Versioning.Core.Net.Api.Exceptions Namespace
Contains exception types thrown when version parsing or retrieval operations fail.
Remarks
Section titled “Remarks”All exceptions in this namespace derive from HakomException and carry unique error codes. They map to System.Net.HttpStatusCode.InternalServerError because version parsing failures typically indicate a service configuration problem rather than a client error.
The exceptions are:
- CouldNotParseVersionException — Thrown when a string cannot be parsed as either a SemVer or legacy version.
- CouldNotRetrieveVersionFromAssemblyException — Thrown when an assembly does not contain any usable version metadata.
- InvalidBuildInformationException — Thrown when the build metadata segment of a SemVer string violates the specification.
- InvalidPrereleaseInformationException — Thrown when the pre-release segment of a SemVer string violates the specification.
- MalformedLegacyVersionStringException — Thrown when a four-part legacy version string is malformed (error code HK18007).
- MalformedSemanticVersionStringException — Thrown when a SemVer version string is malformed (error code HK18008).
| Classes | |
|---|---|
| CouldNotParseVersionException | Thrown when a version string cannot be parsed into an IVersion instance. |
| CouldNotRetrieveVersionFromAssemblyException | Thrown when no parseable version information can be retrieved from an System.Reflection.Assembly. |
| InvalidBuildInformationException | Thrown when a version string cannot be parsed as a semantic version because the build metadata (the part after +) does not meet the SemVer 2.0 requirements. |
| InvalidPrereleaseInformationException | Thrown when a version string cannot be parsed as a semantic version because the pre-release information (the part after -) does not meet the SemVer 2.0 requirements. |
| MalformedLegacyVersionStringException | Indicates that an attempt was made to parse a legacy version string that was not in the correct format. |
| MalformedSemanticVersionStringException | Indicates that an attempt was made to parse a SemVer version string that was not in the correct format. |
Was this page helpful?Thanks for your feedback!