ex.description?

T

TJ

Hi,

In the Java script...

function....() {
try {
throw "Test";
} catch(ex) {
XDocument.UI.Alert(ex.description);
}
}

I thought that description property contatins "Test" value, however, it was
not..
How do I access the throwing message in catch block?
Which property shoud I use to access the "Test" string in catch block?

Thanks.

....................................................TJ
 
F

Franck Dauché

Hi TJ,

What about:

function .....()
{
try
{
throw new Error("test");
}
catch(ex)
{
XDocument.UI.Alert(ex.description);
}
}

Regards,

Franck Dauché
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top