Creates a new filesystem error.
Optional
messageOrUri: string | UriMessage or uri.
Readonly
codeA code that identifies this error.
Possible values are names of errors, like FileNotFound
,
or Unknown
for unspecified errors.
Static
FileCreate an error to signal that a file or folder already exists, e.g. when creating but not overwriting a file.
Optional
messageOrUri: string | UriMessage or uri.
Static
FileCreate an error to signal that a file is a folder.
Optional
messageOrUri: string | UriMessage or uri.
Static
FileCreate an error to signal that a file is not a folder.
Optional
messageOrUri: string | UriMessage or uri.
Static
FileCreate an error to signal that a file or folder wasn't found.
Optional
messageOrUri: string | UriMessage or uri.
Static
NoCreate an error to signal that an operation lacks required permissions.
Optional
messageOrUri: string | UriMessage or uri.
Static
UnavailableCreate an error to signal that the file system is unavailable or too busy to complete a request.
Optional
messageOrUri: string | UriMessage or uri.
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);