Class InvalidImageContentException
The exception that is thrown when the library tries to load an image which contains invalid content.
Implements
Inherited Members
Namespace: SixLabors.ImageSharp
Assembly: SixLabors.ImageSharp.dll
Syntax
public sealed class InvalidImageContentException : ImageFormatException, ISerializable
Constructors
| Edit this page View SourceInvalidImageContentException(string)
Initializes a new instance of the InvalidImageContentException class with the name of the parameter that causes this exception.
Declaration
public InvalidImageContentException(string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
string | errorMessage | The 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.
Declaration
public InvalidImageContentException(string errorMessage, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | errorMessage | The error message that explains the reason for this exception. |
Exception | 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. |