Optionalmessage: stringOptionalmessage: stringOptionaloptions: ErrorOptionsOptionalcauseReadonlycodeA 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.
OptionalstackStaticBlockedThe requestor is blocked from using this language model.
Optionalmessage: stringStaticisIndicates whether the argument provided is a built-in Error instance or not.
StaticNoThe requestor does not have permissions to use this language model
Optionalmessage: stringStaticNot
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.