12 lines
236 B
JavaScript
12 lines
236 B
JavaScript
|
var util = require('util');
|
||
|
|
||
|
|
||
|
function MalformedPacket(/*message*/) {
|
||
|
Error.call(this);
|
||
|
this.message = util.format.apply(null, arguments);
|
||
|
}
|
||
|
|
||
|
util.inherits(MalformedPacket, Error);
|
||
|
|
||
|
module.exports.MalformedPacket = MalformedPacket;
|