Constructor
new NotFoundError(id)
Defines a NotFoundError to be thrown when a resource is not found.
Parameters:
Name | Type | Description |
---|---|---|
id |
String | Number | The resource id which hasn't been found |
- Source:
Example
var openVeoApi = require('@openveo/api');
throw new openVeoApi.errors.NotFoundError(42);
Extends
- Error
Members
(readonly) id :String|Number
The resource id which hasn't been found.
Type:
- String | Number
- Source:
message :String
Error message.
Type:
- String
- Source:
name :String
The error name.
Type:
- String
- Source: