Only when catching an exception from evaluation can we decorate the ExecutorException with Pkl version information (all other occurrences are pre-resolution failures or failure-to-resolve). That's why this PR adds an extra constructor.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/apple/pkl/pull/719
**Author:** [@holzensp](https://github.com/holzensp)
**Created:** 10/21/2024
**Status:** ✅ Merged
**Merged:** 10/23/2024
**Merged by:** [@holzensp](https://github.com/holzensp)
**Base:** `main` ← **Head:** `executorShowingVersion`
---
### 📝 Commits (2)
- [`8dd680a`](https://github.com/apple/pkl/commit/8dd680a9e51333e0d6568b60e2079938b0b4202f) Add version of resolved Pkl distribution to `ExecutorException`
- [`92a7a20`](https://github.com/apple/pkl/commit/92a7a201608abf8ef1779e2bcc6ee8e4e2556aa9) Review comments
### 📊 Changes
**2 files changed** (+30 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `pkl-executor/src/main/java/org/pkl/executor/EmbeddedExecutor.java` (+1 -1)
📝 `pkl-executor/src/main/java/org/pkl/executor/ExecutorException.java` (+29 -0)
</details>
### 📄 Description
Only when catching an exception from evaluation can we decorate the `ExecutorException` with Pkl version information (all other occurrences are pre-resolution failures or failure-to-resolve). That's why this PR adds an extra constructor.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/719
Author: @holzensp
Created: 10/21/2024
Status: ✅ Merged
Merged: 10/23/2024
Merged by: @holzensp
Base:
main← Head:executorShowingVersion📝 Commits (2)
8dd680aAdd version of resolved Pkl distribution toExecutorException92a7a20Review comments📊 Changes
2 files changed (+30 additions, -1 deletions)
View changed files
📝
pkl-executor/src/main/java/org/pkl/executor/EmbeddedExecutor.java(+1 -1)📝
pkl-executor/src/main/java/org/pkl/executor/ExecutorException.java(+29 -0)📄 Description
Only when catching an exception from evaluation can we decorate the
ExecutorExceptionwith Pkl version information (all other occurrences are pre-resolution failures or failure-to-resolve). That's why this PR adds an extra constructor.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.