public interface DiagramReturn
Diagram
object if the operation was successful, or an error message if the operation
failed, along with the line number where the error occurred.| Modifier and Type | Method and Description |
|---|---|
java.awt.image.BufferedImage |
asImage()
Converts the generated diagram to an image representation.
|
java.lang.String |
error()
Retrieves the error message associated with the diagram processing operation.
|
Diagram |
getDiagram()
Retrieves the
Diagram generated by the diagram processing operation. |
java.util.Optional<java.lang.Integer> |
getErrorLine()
Retrieves the line number where an error occurred during the diagram
processing operation.
|
java.lang.Throwable |
getRootCause()
Retrieves the root cause of the error occurred during the diagram processing operation.
|
Diagram getDiagram()
Diagram generated by the diagram processing operation.Diagram, or null if there was an error
during the diagram generation process, implying that no valid diagram
could be created.java.lang.String error()
null if the
operation completed successfully and a valid diagram was produced.java.util.Optional<java.lang.Integer> getErrorLine()
Optional containing the line number of the error if an
error occurred; otherwise, an empty Optional if the operation
completed successfully without errors.java.awt.image.BufferedImage asImage()
throws java.io.IOException
BufferedImage representing the diagram.java.io.IOException - if there is an error during the image generation process, such as an issue
writing to a file or generating the image from the diagram.java.lang.Throwable getRootCause()
Throwable object representing the root cause of the error, or null
if the operation completed successfully without any exceptions.