mirror of https://github.com/SixLabors/ImageSharp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.7 KiB
45 lines
1.7 KiB
// <copyright file="ImageFormatException.cs" company="James Jackson-South">
|
|
// Copyright (c) James Jackson-South and contributors.
|
|
// Licensed under the Apache License, Version 2.0.
|
|
// </copyright>
|
|
|
|
namespace ImageProcessor
|
|
{
|
|
using System;
|
|
|
|
/// <summary>
|
|
/// The exception that is thrown when the library tries to load
|
|
/// an image, which has an invalid format.
|
|
/// </summary>
|
|
public class ImageFormatException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ImageFormatException"/> class.
|
|
/// </summary>
|
|
public ImageFormatException()
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ImageFormatException"/> class with the name of the
|
|
/// parameter that causes this exception.
|
|
/// </summary>
|
|
/// <param name="errorMessage">The error message that explains the reason for this exception.</param>
|
|
public ImageFormatException(string errorMessage)
|
|
: base(errorMessage)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="ImageFormatException"/> class with a specified
|
|
/// error message and the exception that is the cause of this exception.
|
|
/// </summary>
|
|
/// <param name="errorMessage">The error message that explains the reason for this exception.</param>
|
|
/// <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic)
|
|
/// if no inner exception is specified.</param>
|
|
public ImageFormatException(string errorMessage, Exception innerException)
|
|
: base(errorMessage, innerException)
|
|
{
|
|
}
|
|
}
|
|
}
|
|
|