You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+30
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,36 @@ var svg = wrapper.RenderDiagram(script);
59
59
// You can save this to a file, display it in a web page, or process it further as needed
60
60
```
61
61
62
+
## Error Handling
63
+
64
+
The `RenderDiagram` method now returns a `RenderResult` object, which includes both the rendered SVG (if successful) and detailed error information (if rendering failed). Here's how you can use it:
Copy file name to clipboardexpand all lines: README.nuget.md
+30
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,36 @@ catch (Exception ex)
49
49
}
50
50
```
51
51
52
+
## Error Handling
53
+
54
+
The `RenderDiagram` method now returns a `RenderResult` object, which includes both the rendered SVG (if successful) and detailed error information (if rendering failed). Here's how you can use it:
0 commit comments