• Views
  • Iteration Report
  • My Iteration Report
  •  
OMERO.server
  • Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 1627 for branches/3.0-Beta2/components/server/src/ome/services/ThumbnailBean.java

Show
Ignore:
Timestamp:
06/11/07 22:56:09 (18 months ago)
Author:
david
Message:

exception handling cleanup ticket #730

Files:
1 modified

  • branches/3.0-Beta2/components/server/src/ome/services/ThumbnailBean.java (modified) (4 diffs)

Legend:

Unmodified
Added
Removed
  • branches/3.0-Beta2/components/server/src/ome/services/ThumbnailBean.java

    r1595 r1627  
    524524            compressThumbnailToDisk(metadata, image); 
    525525        } catch (IOException e) { 
    526             e.printStackTrace(); 
     526            log.error("Thumbnail could not be compressed.", e.getCause()); 
    527527            throw new ResourceError(e.getMessage()); 
    528528        } 
    … …  
    578578            return ioService.getThumbnail(metadata); 
    579579        } catch (IOException e) { 
    580             e.printStackTrace(); 
     580            log.error("Could not obtain thumbnail metadata.", e.getCause()); 
    581581            throw new ResourceError(e.getMessage()); 
    582582        } 
    … …  
    636636            return thumbnail; 
    637637        } catch (IOException e) { 
    638             e.printStackTrace(); 
     638            log.error("Could not obtain thumbnail direct.", e.getCause()); 
    639639            throw new ResourceError(e.getMessage()); 
    640640        } finally { 
    … …  
    642642                        byteStream.close(); 
    643643                } catch (IOException e) { 
    644                         e.printStackTrace(); 
     644                        log.error("Could not close byte stream.", e.getCause()); 
    645645                        throw new ResourceError(e.getMessage()); 
    646646                } 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/