Ignore:
Timestamp:
2/12/2010 6:24:18 AM (2 years ago)
Author:
lowjoel
Message:

When we load a task list from the stream the stream may not be valid. If so, throw an InvalidDataException? instead. This prevents exceptions which are specific to the implementation of the Executor class from letting its exceptions bubble up the stack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/eraser6/Eraser/MainForm.cs

    r1825 r1829  
    266266                            Program.eraserClient.Tasks.LoadFromStream(stream); 
    267267                        } 
    268                         catch (FileLoadException ex) 
    269                         { 
    270                             MessageBox.Show(S._("The task list could not be imported. The error " + 
    271                                 "returned was: {0}", ex.Message), S._("Eraser"), 
    272                                 MessageBoxButtons.OK, MessageBoxIcon.Error, 
    273                                 MessageBoxDefaultButton.Button1, 
    274                                 Localisation.IsRightToLeft(this) ? 
    275                                     MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    276                         } 
    277                         catch (SerializationException ex) 
     268                        catch (InvalidDataException ex) 
    278269                        { 
    279270                            MessageBox.Show(S._("The task list could not be imported. The error " + 
Note: See TracChangeset for help on using the changeset viewer.