We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb5e552 commit 8bb0f44Copy full SHA for 8bb0f44
PDFTronGo/pdftron.i
@@ -221,11 +221,12 @@
221
// All functions now return an error in addition to their return type instead of panicking on exceptions.
222
223
// Ensure necessary imports for error handling code
224
-%insert(go_imports) %{
225
-import "errors"
+%insert(go_imports)
+%{import "errors"
226
import "fmt"
227
%}
228
229
+// Handle exceptions by triggering recoverable panic containing the exception message
230
%include "exception.i"
231
%exception {
232
try {
0 commit comments