FileUrlExpiredException Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Constructors
| Name | Description |
|---|---|
| FileUrlExpiredException() |
Initializes a new instance of the FileUrlExpiredException class. Reason is left |
| 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 |
| FileUrlExpiredException(String) |
Initializes a new instance of the FileUrlExpiredException class with a specified error message. Reason is left |
Properties
| Name | Description |
|---|---|
| Reason |
Lets callers branch without string-matching the message. |