VS Code API
    Preparing search index...

    Class FileSystemError

    A type that filesystem providers should use to signal errors.

    This class has factory methods for common error-cases, like FileNotFound when a file or folder doesn't exist, use them like so: throw vscode.FileSystemError.FileNotFound(someUri);

    Hierarchy

    Index

    Constructors

    Properties

    cause?: unknown
    code: string

    A code that identifies this error.

    Possible values are names of errors, like FileNotFound, or Unknown for unspecified errors.

    message: string
    name: string
    stack?: string

    Methods

    • Create an error to signal that a file or folder already exists, e.g. when creating but not overwriting a file.

      Parameters

      • OptionalmessageOrUri: string | Uri

        Message or uri.

      Returns FileSystemError

    • Indicates whether the argument provided is a built-in Error instance or not.

      Parameters

      • error: unknown

      Returns error is Error

    • Create an error to signal that the file system is unavailable or too busy to complete a request.

      Parameters

      • OptionalmessageOrUri: string | Uri

        Message or uri.

      Returns FileSystemError