Search Results for

    Show / Hide Table of Contents

    Class ImageLoadException

    Represents an exception that is thrown when an error occurs during the loading of an image.

    Inheritance
    System.Object
    ImageLoadException
    Namespace: IronWord.Models.Exceptions
    Assembly: IronWord.dll
    Syntax
    public class ImageLoadException : Exception

    When IronWord cannot load an image being added to or read from a Word document, it raises ImageLoadException to report the failure with context. The underlying cause, a missing file, an unsupported or corrupt format, or an unreadable stream, is preserved as the inner exception. Confirm the source path, that the file is a supported image type, and that any stream is readable before retrying. Deriving from System.Exception, it is also caught by a general handler around the load.

    Constructors

    ImageLoadException(String, Exception)

    Initializes a new instance of the ImageLoadException class with a specified error message and a reference to the inner exception that is the cause of this exception.

    Declaration
    public ImageLoadException(string message, Exception innerException)
    Parameters
    Type Name Description
    System.String message

    The error message that explains the reason for the exception.

    System.Exception innerException

    The exception that is the cause of the current exception.

    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet