Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the ExifReaderException class with the specific arguments
 /// </summary>
 /// <param name="innerException">The source exception</param>
 /// <param name="propertyFormatter">The property formatter if any</param>
 /// <param name="undefinedExtractor">The undefined extractor if any</param>
 internal ExifReaderException(Exception innerException, IExifPropertyFormatter propertyFormatter, IExifValueUndefinedExtractor undefinedExtractor)
     : this(String.Format("There was a problem handling an Exif tag.\r\n" + 
             "The PropertyFormatter or UndefinedExtractor properties should indicate the cause of the problem.\r\n" + 
             "See the InnerException for more info on the source exception that was thrown.\r\n"), 
         innerException, 
         propertyFormatter, 
         undefinedExtractor)
 {
 }
 /// <summary>
 /// Gets the IExifValueUndefinedExtractor
 /// </summary>
 /// <returns>The IExifValueUndefinedExtractor</returns>
 public IExifValueUndefinedExtractor GetUndefinedExtractor()
 {
     return this.undefinedExtractor ??
         (this.undefinedExtractor = Activator.CreateInstance(this.undefinedExtractorType) as IExifValueUndefinedExtractor);
 }
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the ExifReaderException class with the specific arguments
 /// </summary>
 /// <param name="message">The error message for the exception</param>
 /// <param name="innerException">The source exception</param>
 /// <param name="propertyFormatter">The property formatter if any</param>
 /// <param name="undefinedExtractor">The undefined extractor if any</param>
 internal ExifReaderException(string message, Exception innerException, IExifPropertyFormatter propertyFormatter, IExifValueUndefinedExtractor undefinedExtractor)
     : base(message, innerException)
 {
     this.PropertyFormatter = propertyFormatter;
     this.UndefinedExtractor = undefinedExtractor;
 }
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the ExifReaderException class with the specific arguments
 /// </summary>
 /// <param name="innerException">The source exception</param>
 /// <param name="undefinedExtractor">The undefined extractor if any</param>
 internal ExifReaderException(Exception innerException, IExifValueUndefinedExtractor undefinedExtractor)
     : this(innerException, null, undefinedExtractor)
 {
 }