Browse Source

Remove empty exception constructors

Ensure that we provide a message when throwing.
af/merge-core
Jason Nelson 9 years ago
parent
commit
1f83817b9a
  1. 7
      src/ImageSharp/Common/Exceptions/ImageFormatException.cs
  2. 9
      src/ImageSharp/Common/Exceptions/ImageProcessingException.cs

7
src/ImageSharp/Common/Exceptions/ImageFormatException.cs

@ -11,13 +11,6 @@ namespace SixLabors.ImageSharp
/// </summary> /// </summary>
public sealed class ImageFormatException : Exception public sealed class ImageFormatException : Exception
{ {
/// <summary>
/// Initializes a new instance of the <see cref="ImageFormatException"/> class.
/// </summary>
public ImageFormatException()
{
}
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ImageFormatException"/> class with the name of the /// Initializes a new instance of the <see cref="ImageFormatException"/> class with the name of the
/// parameter that causes this exception. /// parameter that causes this exception.

9
src/ImageSharp/Common/Exceptions/ImageProcessingException.cs

@ -10,13 +10,6 @@ namespace SixLabors.ImageSharp
/// </summary> /// </summary>
public sealed class ImageProcessingException : Exception public sealed class ImageProcessingException : Exception
{ {
/// <summary>
/// Initializes a new instance of the <see cref="ImageProcessingException"/> class.
/// </summary>
public ImageProcessingException()
{
}
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="ImageProcessingException"/> class with the name of the /// Initializes a new instance of the <see cref="ImageProcessingException"/> class with the name of the
/// parameter that causes this exception. /// parameter that causes this exception.
@ -39,4 +32,4 @@ namespace SixLabors.ImageSharp
{ {
} }
} }
} }
Loading…
Cancel
Save