Can we pass extra arguments to Global Exception Handler?

Can we pass extra arguments to Global Exception Handler, or access our main program’s variables? For example, if I want to close open applications that could be stored in variables inside ‘main’, whenever the GE handler is called.

Is this possible?

2 Likes

yah ofcourse make sure that those variables are defined GLOBALLY like global variables
that is the scope of those variables must be with whole sequence or whole project

Cheers @pduffy

Thanks Palaniyappan. I tried that - they are global variables whose scope starts at ‘main’, but they are not accessible from within the Global Exception Handler block - i.e. the GlobalHandler.xaml file that is stored in the project directory.

Apologies if I’m missing something obvious here…

1 Like

Fine
were the Global Exception Handler called in the process, like been invoked

Cheers @pduffy

No. I’m talking about the “Global Exception Handler” workflow that is built into UiPath.

1 Like

Yes how to pass config dictionary to Global exception handler?

1 Like

how about using exception.data diction

  1. create variable Exception(MyException)
  2. add value to share with globalhandler, MyException.Data(“value”) = “data”
  3. in globalhandler, user that value

Read config again in global handler

impossible to do 3). Global Exception Handler will no contains MyException.

Or you means errorInfo.Variables(“MyException”)?