Custom Error Message

How would i go about creating a custom error message in my vision data export? Right now, if you dont choose a file path it pops up the error " Error executing script for event: actionPerformed
on component: Button."

Can I add to my script within actionPerformed? If so, can someone provide an example? Thank you.

I'm not sure exactly what you want, but when that error message pops up, there is another tab called details which gives more information along with traceback information.

You can handle errors yourself with try/except blocks

from java.lang import Throwable
except Throwable:
   #java error
   print "that's infinite, dummy!"

This usually means you aren't checking for a valid file path after the dialog closes. Please show your code.