Login  Register

closing the Exception window

Posted by John Alexander-7 on May 13, 2008; 1:42pm
URL: http://imagej.273.s1.nabble.com/closing-the-Exception-window-tp3696237.html

Hi everyone,

I have a macro that uses a plug in that on occasion throws an Exception.
 It isn't a problem - but I am trying to build in handling for this.
Right now I have this:

if (isOpen("Exception")) {
     print("SLD: "+SLD+":   "+SLDdir+SLDname+" threw an exception");
     selectWindow("Exception");
     close();
     }

I get my Log window with my printed statement, but the close() fails by
saying there is no window "Exception".

any ideas?



--
John K. Alexander, Ph.D.
Post-Doctoral Fellow
William Green Laboratory
University of Chicago
Dept. Neurobiology, Pharmacology, and Physiology
947 East 58th Street
Abott Hall 402
Chicago, IL 60637
(off) 773-702-9386
(fax) 773-702-3774
[hidden email]