UNPKG

airship-server

Version:

Airship is a framework for Node.JS & TypeScript that helps you to write big, scalable and maintainable API servers.

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