erVersionError
erVersionError = 14
Example
function IsLegacyVersionCategory(const ErrorType: TIFException): Boolean;
begin
Result := ErrorType = erVersionError;
end;
Usage
erVersionError retains the Velox scripting version-error category even though current unsupported bytecode builds are reported as erInvalidHeader.
Formatting and exception state
ExceptionToString ignores Param and returns Version error. A host or script can still supply the value explicitly, but that does not prove the loader performed a version comparison.
Additional Technical Info
erVersionError is member ordinal 14 of TIFException, the script-visible declaration that is kept in exact ordinal alignment with PascalScript's runtime TPSError. Its sidebar position 42 is alphabetical navigation metadata and is not its enumeration value.
erVersionError is ordinal 14 in the shared runtime enumeration and preserves an explicit version-incompatibility category for API/bytecode compatibility. Current Velox PascalScript runtime source declares and formats it but has no explicit automatic producer.
The active LoadData build-range check emits erInvalidHeader when PSBuildNo is newer than PSCurrentBuildNo or older than PSLowBuildSupport. Therefore current unsupported compiled scripts should normally be diagnosed through erInvalidHeader, not this retained member.
Behavior, recovery and quirks
- Do not build retry or migration logic that waits only for
erVersionError; inspecterInvalidHeaderand the compiler/runtime provenance as well. - Absence of a producer is current-source behavior and could change with a future Velox scripting update, which is why names rather than ordinals should be persisted.
- Recompile source using the target Velox scripting toolchain instead of editing binary header values.
- Exception transfer is not a database, dataset, filesystem or external-system transaction. Any earlier side effect remains unless the called API or surrounding Flow provides an explicit rollback contract.
- Do not persist the numeric ordinal as an integration contract. Store the member name, formatted message, parameter and relevant procedure/position with the Velox version.
Related Code Library entries
TIFException- complete member order and shared VM-error contract.ExceptionType- read the category saved for the current executor/handler.ExceptionParam- read its associated parameter before state changes.ExceptionProcandExceptionPos- locate the compiled procedure and instruction.ExceptionToString- exact text/parameter mapping for every category.RaiseExceptionandRaiseLastException- create a new error or preserve the caught one.try..except- handler availability, propagation and rollback boundaries.
External references
- RemObjects PascalScript
uPSRuntime.pas- upstream runtime taxonomy and executor context; the modified source shipped with Velox is authoritative for current behavior.