UNPKG

node-vk-sdk

Version:

VK API SDK for Node.js

15 lines 530 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); class VKApiError extends Error { constructor(errorCode, errorMsg, requestParams) { super(errorMsg || errorCode.toString()); this.errorCode = errorCode; this.errorMsg = errorMsg; this.requestParams = requestParams; } static deserialize(raw) { return new VKApiError(raw['error_code'], raw['error_msg'], raw['request_params']); } } exports.default = VKApiError; //# sourceMappingURL=VKApiError.js.map