[Laszlo-dev] can I programattically access runtime errors?

Lorien Henry-Wilkins lhenrywilkins at laszlosystems.com
Thu Jul 3 11:34:29 PDT 2008


Hi guys,

I have a piece of code that sets the source of a view to a resource 
(using setSource) and I want to detect when an error occurs. To test 
error handling, I am setting the source of the view to an html resource. 
This fails as expected, and I get an onerror event, but no parameter is 
passed in. In my debugger I see the error: "ERROR: data conversion error 
for 
http://localhost:8080/pagan-deities/diamond/client/components/audiovideo/test/err.html: 
can't guess a supported mime-type from content". So I know the debugger 
knows what's wrong, is there anyway for me to programatically get at 
that error from inside my onerror handler?

Thanks,
Lorien


More information about the Laszlo-dev mailing list