Constructor
new StorageError(message, code)
Defines a StorageError to be thrown when a storage error occurred.
Parameters:
Name | Type | Description |
---|---|---|
message |
String | The error message |
code |
Number | The code corresponding to the error |
- Source:
Example
var openVeoApi = require('@openveo/api');
throw new openVeoApi.errors.StorageError(42);
Extends
- Error
Members
(readonly) code :Number
The error code.
Type:
- Number
- Source:
message :String
Error message.
Type:
- String
- Source:
name :String
The error name.
Type:
- String
- Source: