// // Copyright (c) James Jackson-South and contributors. // Licensed under the Apache License, Version 2.0. // namespace ImageProcessorCore { using System; /// /// The exception that is thrown when an error occurs when applying a process to an image. /// public 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. /// /// The error message that explains the reason for this exception. public ImageProcessingException(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 ImageProcessingException(string errorMessage, Exception innerException) : base(errorMessage, innerException) { } } }