// // Copyright (c) James South and contributors. // Licensed under the Apache License, Version 2.0. // namespace ImageProcessor { using System; /// /// The exception that is thrown when the library tries to load /// an image, which has an invalid format. /// public 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. /// /// The error message that explains the reason for this exception. public ImageFormatException(string errorMessage) : base(errorMessage) { } /// /// Initializes a new instance of the class with a specified /// error message and the exception that is the cause of this exception. /// /// The error message that explains the reason for this exception. /// The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) /// if no inner exception is specified. public ImageFormatException(string errorMessage, Exception innerException) : base(errorMessage, innerException) { } } }