Set the cause of a `PrinterException` to the `RuntimeException` caught during printing, thus wrap any other exception that occurs during printer into a `PrinterException`.
I updated the test to print to a file—there's no need to send a print job to a physical printer. (Otherwise, the test asked me to select a file for the PDF Printer that I had.) ------------- Commit messages: - 8381208: Init cause with the caught runtime exception Changes: https://git.openjdk.org/jdk/pull/30656/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30656&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8381208 Stats: 53 lines in 2 files changed: 37 ins; 10 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/30656.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30656/head:pull/30656 PR: https://git.openjdk.org/jdk/pull/30656
