From 8fe8e4b5845c40c1f4b99fcabb21a039f1828c69 Mon Sep 17 00:00:00 2001 From: Jason Nelson Date: Thu, 19 Apr 2018 09:10:03 -0700 Subject: [PATCH] Remove empty exception constructors Ensure that we provide a message when throwing. --- src/ImageSharp/Common/Exceptions/ImageFormatException.cs | 7 ------- .../Common/Exceptions/ImageProcessingException.cs | 9 +-------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/src/ImageSharp/Common/Exceptions/ImageFormatException.cs b/src/ImageSharp/Common/Exceptions/ImageFormatException.cs index 7a91756b62..89877b1b66 100644 --- a/src/ImageSharp/Common/Exceptions/ImageFormatException.cs +++ b/src/ImageSharp/Common/Exceptions/ImageFormatException.cs @@ -11,13 +11,6 @@ namespace SixLabors.ImageSharp /// public sealed class ImageFormatException : Exception { - /// - /// Initializes a new instance of the class. - /// - public ImageFormatException() - { - } - /// /// Initializes a new instance of the class with the name of the /// parameter that causes this exception. diff --git a/src/ImageSharp/Common/Exceptions/ImageProcessingException.cs b/src/ImageSharp/Common/Exceptions/ImageProcessingException.cs index eb50d0b654..3c75a6418a 100644 --- a/src/ImageSharp/Common/Exceptions/ImageProcessingException.cs +++ b/src/ImageSharp/Common/Exceptions/ImageProcessingException.cs @@ -10,13 +10,6 @@ namespace SixLabors.ImageSharp /// public sealed class ImageProcessingException : Exception { - /// - /// Initializes a new instance of the class. - /// - public ImageProcessingException() - { - } - /// /// Initializes a new instance of the class with the name of the /// parameter that causes this exception. @@ -39,4 +32,4 @@ namespace SixLabors.ImageSharp { } } -} +} \ No newline at end of file