Table of Contents

Class FileTooLargeException

Namespace
GenerativeAI.Exceptions
Assembly
GenerativeAI.dll

Represents an exception that is thrown when a file exceeds the maximum allowed size.

public class FileTooLargeException : Exception, ISerializable
Inheritance
FileTooLargeException
Implements
Inherited Members
Extension Methods

Constructors

FileTooLargeException()

Initializes a new instance of the FileTooLargeException class.

public FileTooLargeException()

FileTooLargeException(string)

Initializes a new instance of the FileTooLargeException class with the specified file name.

public FileTooLargeException(string fileName)

Parameters

fileName string

The name of the file that is too large.

FileTooLargeException(string, Exception)

Initializes a new instance of the FileTooLargeException class with a specified error message and inner exception.

public FileTooLargeException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception.