Loading ...
Sorry, an error occurred while loading the content.
 

Re: [svg-developers] error handling problem

Expand Messages
  • Kevin Lindsey
    Stefan, ... try { printNode(lala); } catch(error) { alert(error.message); } finally { alert( end ); } Kevin KevLinDev - http://www.kevlindev.com
    Message 1 of 2 , Jan 31, 2003
      Stefan,

      > try { printNode(lala); } //"lala" is not a valid node
      > catch(error)
      > {
      > alert(error); // pops up an alert with "[object Error]"
      > }
      > finally
      > {
      > alert("end"); // works
      > }
      > "
      >
      > How can be displayed the data from "[object Error]"?

      try {
      printNode(lala);
      } catch(error) {
      alert(error.message);
      } finally {
      alert("end");
      }

      Kevin
      KevLinDev - http://www.kevlindev.com
    Your message has been successfully submitted and would be delivered to recipients shortly.