Creates a new filesystem error.
OptionalmessageOrUri: string | UriMessage or uri.
OptionalcauseReadonlycodeA code that identifies this error.
Possible values are names of errors, like FileNotFound,
or Unknown for unspecified errors.
OptionalstackStaticFileCreate an error to signal that a file or folder already exists, e.g. when creating but not overwriting a file.
OptionalmessageOrUri: string | UriMessage or uri.
StaticFileCreate an error to signal that a file is a folder.
OptionalmessageOrUri: string | UriMessage or uri.
StaticFileCreate an error to signal that a file is not a folder.
OptionalmessageOrUri: string | UriMessage or uri.
StaticFileCreate an error to signal that a file or folder wasn't found.
OptionalmessageOrUri: string | UriMessage or uri.
StaticisIndicates whether the argument provided is a built-in Error instance or not.
StaticNoCreate an error to signal that an operation lacks required permissions.
OptionalmessageOrUri: string | UriMessage or uri.
StaticUnavailableCreate an error to signal that the file system is unavailable or too busy to complete a request.
OptionalmessageOrUri: string | UriMessage or uri.
A type that filesystem providers should use to signal errors.
This class has factory methods for common error-cases, like
FileNotFoundwhen a file or folder doesn't exist, use them like so:throw vscode.FileSystemError.FileNotFound(someUri);