Changeset 3101


Ignore:
Timestamp:
08/24/07 14:19:08 (12 years ago)
Author:
curtis
Message:

Use exception chaining to preserve root causes of exceptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/out/LegacyQTWriter.java

    r3015 r3101  
    181181      catch (Exception e) { 
    182182        trace(e); 
    183         throw new FormatException("Legacy QuickTime writer failed."); 
     183        throw new FormatException("Legacy QuickTime writer failed", e); 
    184184      } 
    185185    } 
     
    256256    catch (Exception e) { 
    257257      trace(e); 
    258       throw new FormatException("Legacy QuickTime writer failed."); 
     258      throw new FormatException("Legacy QuickTime writer failed", e); 
    259259    } 
    260260    if (last) { 
     
    272272      catch (Exception e) { 
    273273        trace(e); 
    274         throw new FormatException("Legacy QuickTime writer failed."); 
     274        throw new FormatException("Legacy QuickTime writer failed", e); 
    275275      } 
    276276    } 
Note: See TracChangeset for help on using the changeset viewer.