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
| Improve this Doc 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. |