Language

FileUrlExpiredException Class

Definition

Raised when an inbound file's short-lived download URL has expired and can no longer fetch bytes.

A personal file's pre-authorized tempauth download URL is valid only briefly. A fetch after it lapses gets a 401/403 from the platform. A handler that downloads once (and does not keep the handle) should not hit this.

Reason distinguishes the two cases; see FileUrlExpiredReason.

public class FileUrlExpiredException : Microsoft.Teams.Apps.Files.FileException
type FileUrlExpiredException = class
    inherit FileException
Public Class FileUrlExpiredException
Inherits FileException
Inheritance
FileUrlExpiredException

Constructors

Name Description
FileUrlExpiredException()

Initializes a new instance of the FileUrlExpiredException class. Reason is left null.

FileUrlExpiredException(FileUrlExpiredReason, String)

Initializes a new instance of the FileUrlExpiredException class with the specified reason and error message.

FileUrlExpiredException(FileUrlExpiredReason)

Initializes a new instance of the FileUrlExpiredException class with the specified reason and a default message.

FileUrlExpiredException(String, Exception)

Initializes a new instance of the FileUrlExpiredException class with a specified error message and inner exception. Reason is left null.

FileUrlExpiredException(String)

Initializes a new instance of the FileUrlExpiredException class with a specified error message. Reason is left null.

Properties

Name Description
Reason

Lets callers branch without string-matching the message. null when the reason was not specified, matching how Scope reports an unknown scope. See FileUrlExpiredReason.

Applies to