A code that identifies this error.
Possible values are names of errors, like FileNotFound
,
or Unknown
for unspecified errors.
Create an error to signal that a file or folder wasn't found.
Message or uri.
Create an error to signal that a file or folder already exists, e.g. when creating but not overwriting a file.
Message or uri.
Create an error to signal that a file is not a folder.
Message or uri.
Create an error to signal that a file is a folder.
Message or uri.
Create an error to signal that an operation lacks required permissions.
Message or uri.
Create an error to signal that the file system is unavailable or too busy to complete a request.
Message or uri.
Creates a new filesystem error.
Message or uri.
友链:VS Code 中文文档 | VS Code 官网文档 | VS Code 扩展市场
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);