[Laszlo-dev] can I programattically access runtime errors?
P T Withington
ptw at pobox.com
Thu Jul 3 12:30:56 PDT 2008
I don't think so. The debugger is probably just printing out the
error object that came back from the underlying runtime.
I now see the point of your previous question though. Clearly it
would be nice if this object were handed to your onerror handler. I
think you will have to file an enhancement request for that.
There might be a way for you to intercept the error from the runtime
before the loader gets it and neuters it, but it would seem cleaner
for the loader to just pass on the error object to you.
On 2008-07-03, at 14:34 EDT, Lorien Henry-Wilkins wrote:
> 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