æ¨æºã®Errorãæ¡å¼µãã¦ããããã£ãæã£ãCustomErrorãä½æããã®ã«ã ã¯ã¾ã£ã¦ãã¾ã£ã¦ãã£ã¨è§£æ±ºããã®ã§å ±æãã¾ãã ç¶æ¿ã®ãããã ã¾ãã¯ãä½ã®å¤å²ããªãç¶æ¿ã®æ¹æ³ãããããããã¾ãã node.jsã§æ®éã«ç¶æ¿ãè¡ãã¨æ¬¡ã®ããã«å®è£ ããäºãåºæ¥ã¾ã var util = require('util'); // ç¶æ¿å var Vehicle = function Vehicle (capacity) { this.capacity = capacity; }; Vehicle.prototype.capacity = 0; // ç¶æ¿å var Car = function Car (capacity, color) { Car.super_.call(this, capacity); if (color) { this.color = color; } }; util.
{{#tags}}- {{label}}
{{/tags}}