Changeset 57:41dbc4d9faab

Show
Ignore:
Timestamp:
02/04/08 06:46:24 (10 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

Update to tango trunk -r3152. Thanks DavidLeon? for the adjustment of TracedException? to Exception and creating the patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/DWT.d

    r4 r57  
    34883488 * @see IllegalArgumentException 
    34893489 */ 
    3490 public static void error (int code, TracedException throwable) { 
     3490public static void error (int code, Exception throwable) { 
    34913491    error (code, throwable, null); 
    34923492} 
     
    35203520 * @since 3.0 
    35213521 */ 
    3522 public static void error (int code, TracedException throwable, char[] detail) { 
     3522public static void error (int code, Exception throwable, char[] detail) { 
    35233523 
    35243524    /* 
  • dwt/DWTError.d

    r48 r57  
    5555     * or null if this information is not available. 
    5656     */ 
    57     public TracedException throwable; 
     57    public Exception throwable; 
    5858 
    5959    //static final long serialVersionUID = 3833467327105808433L; 
  • dwt/DWTException.d

    r48 r57  
    3535 */ 
    3636 
    37 public class DWTException : TracedException { 
     37public class DWTException : Exception { 
    3838 
    3939    /** 
     
    4646     * or null if this information is not available. 
    4747     */ 
    48     public TracedException throwable; 
     48    public Exception throwable; 
    4949 
    5050    //static final long serialVersionUID = 3257282552304842547L; 
     
    107107 * @since 3.1 
    108108 */ 
    109 public TracedException getCause() { 
     109public Exception getCause() { 
    110110    return throwable; 
    111111} 
  • dwt/dwthelper/utils.d

    r52 r57  
    136136        super(e); 
    137137    } 
    138     this( TracedException e ){ 
     138    this( Exception e ){ 
    139139        super(e.toString); 
    140140    } 
  • dwt/graphics/Device.d

    r53 r57  
    6464    bool debug_; 
    6565    bool tracking; 
    66     TracedException [] errors; 
     66    Exception [] errors; 
    6767    Object [] objects; 
    6868 
     
    161161        init (); 
    162162        if (tracking) { 
    163             errors = new TracedException [128]; 
     163            errors = new Exception [128]; 
    164164            objects = new Object [128]; 
    165165        } 
     
    205205            gdipToken = token; 
    206206        } 
    207     } catch (TracedException t) { 
     207    } catch (Exception t) { 
    208208        DWT.error (DWT.ERROR_NO_GRAPHICS_LIBRARY, t, " [GDI+ is required]"); //$NON-NLS-1$ 
    209209    } finally { 
     
    393393    int index = 0; 
    394394    data.objects = new Object [count]; 
    395     data.errors = new TracedException [count]; 
     395    data.errors = new Exception [count]; 
    396396    for (int i=0; i<length; i++) { 
    397397        if (objects [i] !is null) { 
     
    821821        if (objects [i] is null) { 
    822822            objects [i] = object; 
    823             errors [i] = new TracedException ( "" ); 
     823            errors [i] = new Exception ( "" ); 
    824824            return; 
    825825        } 
     
    829829    newObjects [objects.length] = object; 
    830830    objects = newObjects; 
    831     TracedException [] newErrors = new TracedException [errors.length + 128]; 
     831    Exception [] newErrors = new Exception [errors.length + 128]; 
    832832    System.arraycopy (errors, 0, newErrors, 0, errors.length); 
    833     newErrors [errors.length] = new TracedException (""); 
     833    newErrors [errors.length] = new Exception (""); 
    834834    errors = newErrors; 
    835835} 
  • dwt/graphics/DeviceData.d

    r19 r57  
    2222    public bool debug_; 
    2323    public bool tracking; 
    24     public TracedException [] errors; 
     24    public Exception [] errors; 
    2525    public Object [] objects; 
    2626} 
  • dwt/internal/image/FileFormat.d

    r2 r57  
    6868        DWT.error(DWT.ERROR_IO, e); 
    6969        return null; 
    70     } catch (TracedException e) { 
     70    } catch (Exception e) { 
    7171        DWT.error(DWT.ERROR_INVALID_IMAGE, e); 
    7272        return null; 
     
    8989                break; 
    9090            } 
    91         } catch (TracedException e) { 
     91        } catch (Exception e) { 
    9292        } 
    9393    } 
     
    114114            } 
    115115        } 
    116     } catch (TracedException e) { 
     116    } catch (Exception e) { 
    117117        DWT.error(DWT.ERROR_UNSUPPORTED_FORMAT); 
    118118    } 
     
    138138        unloadIntoByteStream(loader); 
    139139        outputStream.flush(); 
    140     } catch (TracedException e) { 
     140    } catch (Exception e) { 
    141141        try {outputStream.flush();} catch (Exception f) {} 
    142142        DWT.error(DWT.ERROR_IO, e); 
  • dwt/internal/image/GIFFileFormat.d

    r48 r57  
    232232            } 
    233233            return comment; 
    234         } catch (TracedException e) { 
     234        } catch (Exception e) { 
    235235            DWT.error(DWT.ERROR_IO, e); 
    236236            return null; 
     
    263263            } 
    264264            return text; 
    265         } catch (TracedException e) { 
     265        } catch (Exception e) { 
    266266            DWT.error(DWT.ERROR_IO, e); 
    267267            return null; 
     
    297297            inputStream.read(); 
    298298            return controlBlock; 
    299         } catch (TracedException e) { 
     299        } catch (Exception e) { 
    300300            DWT.error(DWT.ERROR_IO, e); 
    301301            return null; 
     
    338338            } 
    339339            return data; 
    340         } catch (TracedException e) { 
     340        } catch (Exception e) { 
    341341            DWT.error(DWT.ERROR_IO, e); 
    342342            return null; 
  • dwt/internal/image/JPEGDecoder.d

    r48 r57  
    63346334        stream.unread(buffer); 
    63356335        return (buffer[0] & 0xFF) is 0xFF && (buffer[1] & 0xFF) is M_SOI; 
    6336     } catch (TracedException e) { 
     6336    } catch (Exception e) { 
    63376337        return false; 
    63386338    } 
  • dwt/internal/image/JPEGFileFormat.d

    r48 r57  
    13761376        stream.unread(soi.reference); 
    13771377        return soi.verify();  // we no longer check for appN 
    1378     } catch (TracedException e) { 
     1378    } catch (Exception e) { 
    13791379        return false; 
    13801380    } 
     
    17491749        int delta = jpegSegment.getSegmentLength() - 2; 
    17501750        byteStream.skip(delta); 
    1751     } catch (TracedException e) { 
     1751    } catch (Exception e) { 
    17521752        DWT.error(DWT.ERROR_IO, e); 
    17531753    } 
  • dwt/internal/image/JPEGFixedSizeSegment.d

    r48 r57  
    3636        try { 
    3737            byteStream.read(reference); 
    38         } catch (TracedException e) { 
     38        } catch (Exception e) { 
    3939            DWT.error(DWT.ERROR_IO, e); 
    4040        } 
  • dwt/internal/image/JPEGSegment.d

    r2 r57  
    5757            byteStream.write(reference); 
    5858            return true; 
    59         } catch (TracedException e) { 
     59        } catch (Exception e) { 
    6060            return false; 
    6161        } 
  • dwt/internal/image/JPEGVariableSizeSegment.d

    r2 r57  
    3737            byteStream.read(contents, 4, contents.length - 4); 
    3838            reference = contents; 
    39         } catch (TracedException e) { 
     39        } catch (Exception e) { 
    4040            DWT.error(DWT.ERROR_IO, e); 
    4141        } 
  • dwt/internal/image/LZWCodec.d

    r31 r57  
    469469            DWT.error(DWT.ERROR_INVALID_IMAGE); 
    470470        } 
    471     } catch (TracedException e) { 
     471    } catch (Exception e) { 
    472472        DWT.error(DWT.ERROR_IO, e); 
    473473    } 
     
    481481    try { 
    482482        outputStream.write(block, 0, (block[0] & 0xFF) + 1); 
    483     } catch (TracedException e) { 
     483    } catch (Exception e) { 
    484484        DWT.error(DWT.ERROR_IO, e); 
    485485    } 
  • dwt/internal/image/OS2BMPFileFormat.d

    r48 r57  
    3737        int infoHeaderSize = (header[14] & 0xFF) | ((header[15] & 0xFF) << 8) | ((header[16] & 0xFF) << 16) | ((header[17] & 0xFF) << 24); 
    3838        return header[0] is 0x42 && header[1] is 0x4D && infoHeaderSize is BMPHeaderFixedSize; 
    39     } catch (TracedException e) { 
     39    } catch (Exception e) { 
    4040        return false; 
    4141    } 
     
    7979    try { 
    8080        inputStream.read(infoHeader); 
    81     } catch (TracedException e) { 
     81    } catch (Exception e) { 
    8282        DWT.error(DWT.ERROR_IO, e); 
    8383    } 
  • dwt/internal/image/TIFFFileFormat.d

    r48 r57  
    3939        } 
    4040        return true; 
    41     } catch (TracedException e) { 
     41    } catch (Exception e) { 
    4242        return false; 
    4343    } 
  • dwt/internal/image/WinBMPFileFormat.d

    r48 r57  
    340340        int infoHeaderSize = (header[14] & 0xFF) | ((header[15] & 0xFF) << 8) | ((header[16] & 0xFF) << 16) | ((header[17] & 0xFF) << 24); 
    341341        return header[0] is 0x42 && header[1] is 0x4D && infoHeaderSize >= BMPHeaderFixedSize; 
    342     } catch (TracedException e) { 
     342    } catch (Exception e) { 
    343343        return false; 
    344344    } 
     
    400400    try { 
    401401        inputStream.read(infoHeader); 
    402     } catch (TracedException e) { 
     402    } catch (Exception e) { 
    403403        DWT.error(DWT.ERROR_IO, e); 
    404404    } 
  • dwt/widgets/RunnableLock.d

    r31 r57  
    2727    Runnable runnable; 
    2828    Thread thread; 
    29     TracedException throwable; 
     29    Exception throwable; 
    3030 
    3131this (Runnable runnable) { 
  • dwt/widgets/Synchronizer.d

    r31 r57  
    131131            try { 
    132132                lock.run (); 
    133             } catch (TracedException t) { 
     133            } catch (Exception t) { 
    134134                lock.throwable = t; 
    135135                DWT.error (DWT.ERROR_FAILED_EXEC, t);