Changeset 12040


Ignore:
Timestamp:
2006-07-06T17:21:22+12:00 (18 years ago)
Author:
mdewsnip
Message:

(FindBugs) Fixed a couple of places where "catch Exception" was used.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/Gatherer.java

    r11842 r12040  
    982982        return (image_magick_process.exitValue() == 0);
    983983        }
    984         catch (Exception exception) {
     984        catch (IOException exception) {
     985        return false;
     986        }
     987        catch (InterruptedException exception) {
    985988        return false;
    986989        }
  • trunk/gli/src/org/greenstone/gatherer/metadata/DocXMLFile.java

    r11415 r12040  
    143143        }
    144144    }
    145     catch (Exception exception) {
    146         DebugStream.printStackTrace(exception);
    147     }
     145    catch (FileNotFoundException exception) {
     146        DebugStream.printStackTrace(exception);
     147    }
     148    catch (IOException exception) {
     149        DebugStream.printStackTrace(exception);
     150    }
    148151
    149152    return metadata_values;
     
    263266        }
    264267    }
    265     catch (Exception exception) {
    266         DebugStream.printStackTrace(exception);
    267     }
     268    catch (FileNotFoundException exception) {
     269        DebugStream.printStackTrace(exception);
     270    }
     271    catch (IOException exception) {
     272        DebugStream.printStackTrace(exception);
     273    }
    268274    }
    269275}
Note: See TracChangeset for help on using the changeset viewer.