Class InvalidImageContentException
- Namespace
- SixLabors.ImageSharp
- Assembly
- SixLabors.ImageSharp.dll
The exception that is thrown when the library tries to load an image which contains invalid content.
public sealed class InvalidImageContentException : ImageFormatException, ISerializable
- Inheritance
-
InvalidImageContentException
- Implements
- Inherited Members
Constructors
InvalidImageContentException(string)
Initializes a new instance of the InvalidImageContentException class with the name of the parameter that causes this exception.
public InvalidImageContentException(string errorMessage)
Parameters
errorMessage
stringThe error message that explains the reason for this exception.
InvalidImageContentException(string, Exception)
Initializes a new instance of the InvalidImageContentException class with the name of the parameter that causes this exception.
public InvalidImageContentException(string errorMessage, Exception innerException)