Accessing the pipeline version

We’re keen to make better use of pipeline versions but can’t find a parameter to access that version id later on - specifically it would be really useful in our error handlers.
I’ve looked at
but can’t see anything listed - is there any other way to read or access this information or do we have to go down a route of creating a pipeline parameter called “version” and manage it that way?