Changeset 765


Ignore:
Timestamp:
12/09/08 09:34:08 (6 years ago)
Author:
lowjoel
Message:

These exceptions were incorrectly labelled as Not Implemented when they were actually other types of exceptions.

Location:
branches/eraser6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/DefaultPlugins/EraseCustom.cs

    r561 r765  
    142142                } 
    143143                else 
    144                     throw new NotImplementedException("The custom erasure method can only comprise " + 
     144                    throw new ArgumentException("The custom erasure method can only comprise " + 
    145145                        "passes containining constant or random passes"); 
    146146            } 
  • branches/eraser6/Manager/Method.cs

    r605 r765  
    385385            public override long CalculateEraseDataSize(List<string> paths, long targetSize) 
    386386            { 
    387                 throw new NotImplementedException(S._("The DefaultMethod class should never " + 
     387                throw new InvalidOperationException(S._("The DefaultMethod class should never " + 
    388388                    "be used and should instead be replaced before execution!")); 
    389389            } 
     
    392392                ProgressFunction callback) 
    393393            { 
    394                 throw new NotImplementedException(S._("The DefaultMethod class should never " + 
     394                throw new InvalidOperationException(S._("The DefaultMethod class should never " + 
    395395                    "be used and should instead be replaced before execution!")); 
    396396            } 
     
    400400        /// A dummy method placeholder used for representing the default erase 
    401401        /// method. Do not use this variable when trying to call the erase function, 
    402         /// this is just a placeholder and will throw a NotImplementedException. 
     402        /// this is just a placeholder and will throw a InvalidOperationException. 
    403403        /// </summary> 
    404404        public static readonly ErasureMethod Default = new DefaultMethod(); 
  • branches/eraser6/Util/StreamInfo.cs

    r556 r765  
    154154        public override void Delete() 
    155155        { 
    156             throw new NotImplementedException("Deleting streams are not implemented"); 
     156            throw new InvalidOperationException("Deleting streams are not implemented"); 
    157157        } 
    158158 
Note: See TracChangeset for help on using the changeset viewer.