Optional
message: stringReadonly
codeA code that identifies this error.
Possible values are names of errors, like NotFound
,
or Unknown
for unspecified errors from the language model itself. In the latter case the
cause
-property will contain the actual error.
Static
BlockedThe requestor is blocked from using this language model.
Optional
message: stringStatic
NoThe requestor does not have permissions to use this language model
Optional
message: stringStatic
NotThe language model does not exist.
Optional
message: string
An error type for language model specific errors.
Consumers of language models should check the code property to determine specific failure causes, like
if(someError.code === vscode.LanguageModelError.NotFound.name) {...}
for the case of referring to an unknown language model. For unspecified errors thecause
-property will contain the actual error.Stubbed