PlantUML Java: Accessing Detailed Syntax Errors

0 votes
asked Jun 20 in Question / help by jozsef
edited Jun 25
Hello,

I use PlantUML Library 1.2025.3, as described in https://plantuml.com/api

Example code:
SourceStringReader reader = new SourceStringReader(source);
String desc = reader.outputImage(png).getDescription();

If the source contains a syntax error, I only get "(error)" as the description.
How can I retrieve the specific syntax error message (such as the line number and details), instead of just "(error)"?

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...