Table of Contents

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 string

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.

public InvalidImageContentException(string errorMessage, Exception innerException)

Parameters

errorMessage string

The error message that explains the reason for this exception.

innerException 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.