UNPKG

node-nicovideo-api

Version:

nicovideo api (video, live, etc..) wrapper package for node.js

20 lines (14 loc) 773 B
// Generated by CoffeeScript 1.10.0 (function() { var NicoException, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, hasProp = {}.hasOwnProperty; module.exports = NicoException = (function(superClass) { extend(NicoException, superClass); function NicoException(arg) { this.message = arg.message, this.code = arg.code, this.response = arg.response, this.previous = arg.previous; NicoException.__super__.constructor.call(this, this.message); } return NicoException; })(Error); }).call(this);