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);
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);`
(code file-system-error)
A code that identifies this error.
Possible values are names of errors, like {@linkcode FileSystemError.FileNotFound FileNotFound},
or Unknown
for unspecified errors.
A code that identifies this error. Possible values are names of errors, like {@linkcode FileSystemError.FileNotFound FileNotFound}, or `Unknown` for unspecified errors.
(file-exists)
(file-exists message-or-uri)
Create an error to signal that a file or folder already exists, e.g. when creating but not overwriting a file.
Parameters:
message-or-uri
: string | Uri | undefined
- Message or uri.Returns: FileSystemError
Create an error to signal that a file or folder already exists, e.g. when creating but not overwriting a file. **Parameters:** - `message-or-uri`: `string | Uri | undefined` - Message or uri. **Returns:** `FileSystemError`
(file-is-a-directory)
(file-is-a-directory message-or-uri)
Create an error to signal that a file is a folder.
Parameters:
message-or-uri
: string | Uri | undefined
- Message or uri.Returns: FileSystemError
Create an error to signal that a file is a folder. **Parameters:** - `message-or-uri`: `string | Uri | undefined` - Message or uri. **Returns:** `FileSystemError`
(file-not-a-directory)
(file-not-a-directory message-or-uri)
Create an error to signal that a file is not a folder.
Parameters:
message-or-uri
: string | Uri | undefined
- Message or uri.Returns: FileSystemError
Create an error to signal that a file is not a folder. **Parameters:** - `message-or-uri`: `string | Uri | undefined` - Message or uri. **Returns:** `FileSystemError`
(file-not-found)
(file-not-found message-or-uri)
Create an error to signal that a file or folder wasn't found.
Parameters:
message-or-uri
: string | Uri | undefined
- Message or uri.Returns: FileSystemError
Create an error to signal that a file or folder wasn't found. **Parameters:** - `message-or-uri`: `string | Uri | undefined` - Message or uri. **Returns:** `FileSystemError`
(no-permissions)
(no-permissions message-or-uri)
Create an error to signal that an operation lacks required permissions.
Parameters:
message-or-uri
: string | Uri | undefined
- Message or uri.Returns: FileSystemError
Create an error to signal that an operation lacks required permissions. **Parameters:** - `message-or-uri`: `string | Uri | undefined` - Message or uri. **Returns:** `FileSystemError`
(unavailable)
(unavailable message-or-uri)
Create an error to signal that the file system is unavailable or too busy to complete a request.
Parameters:
message-or-uri
: string | Uri | undefined
- Message or uri.Returns: FileSystemError
Create an error to signal that the file system is unavailable or too busy to complete a request. **Parameters:** - `message-or-uri`: `string | Uri | undefined` - Message or uri. **Returns:** `FileSystemError`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close