Replies: 4 comments 12 replies
-
This might be a question for Jint repo |
Beta Was this translation helpful? Give feedback.
1 reply
-
Yes, Jint supports this operation var engine = new Engine(options =>
{
options.Interop.ExceptionHandler = ex =>
{
//Determines the type of exception to be handled by Jint based on the exception information.
Console.WriteLine(ex.Message);
return true;
};
} |
Beta Was this translation helpful? Give feedback.
8 replies
-
FOr anyone who is trying to do this, wrap the evaluate method in a try catch and catch I did not need to modify engine options.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
Yeap I think it’s cos it’s using Jint, and the engine itself is throwing
the exception. So you have to catch the specific exception to case it to
JavascrptException.
…On Tue, 16 Jul 2024 at 5:03 PM, Tony Han ***@***.***> wrote:
Really? As I recall, when an extension reports an error internally, it
doesn't indicate the location of the script where the error occurred, e.g.
if you make an extension that handles excel, if excel doesn't exist, it
will throw an IO exception without including the exact location of the
script.
—
Reply to this email directly, view it on GitHub
<#16357 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGDEEVTFJ4WM675SXZJMAP3ZMTOXRAVCNFSM6AAAAABJVN5CXCVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMBWGAYTKNA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using the javascript scripting workflow task, is it possible to show which line or variable that causes an error?
Beta Was this translation helpful? Give feedback.
All reactions