ErNoError
ErNoError = 0
Example
function HasNoSavedRuntimeError: Boolean;
begin
Result := ExceptionType = ErNoError;
end;
Usage
ErNoError represents the zero TIFException sentinel used when the current Velox scripting executor or handler has no saved VM error.
Formatting and exception state
ExceptionToString ignores Param and returns No Error.
Additional Technical Info
ErNoError is member ordinal 0 of TIFException, the script-visible declaration that is kept in exact ordinal alignment with PascalScript's runtime TPSError. Its sidebar position 30 is alphabetical navigation metadata and is not its enumeration value.
ErNoError is ordinal 0 and the initial/empty value for PascalScript VM exception state. ExceptionType returns it when the inspected executor or top handler frame has no saved error.
It means only “no category is stored in this VM state/frame.” It does not prove that a Velox Flow succeeded, that previous work committed, that no warning was logged, or that earlier side effects were rolled back.
Behavior, recovery and quirks
RaiseException(ErNoError, Param)does not transfer control.CMD_Err2can invoke a hostOnExceptioncallback, thenExceptionProcrecords the supplied fields and exits because the category is zero. Current Velox setup has no assigned callback at this hook.- Using the zero member as a raise/clear operation is unsafe: it can overwrite executor-level fields, does not clear an active handler frame returned by
LastEx, and communicates no business outcome. - Use it for comparisons and initial state. Handle expected categories explicitly and re-raise unexpected errors with
RaiseLastException. - 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.