Question
How to create Exception
Hi to All !
How I'm can create exception &
......
try{.....
folderAdd(newName);}
catch(e) {
showError(e);
}
function folderAdd(newName){myFolder = new Folder(newName);
if (!myFolder.exists) myFolder.create();
else{
!!!! in that place I'm whant to create exception !!!!!
}}