lib/messages/commands/reject.js
function RejectMessage(arg, options) {
  if (!arg) {
    arg = {};
  }
  Message.call(this, options);
  this.command = 'reject';
  this.message = arg.message;
  this.ccode = arg.ccode;
  this.reason = arg.reason;
  this.data = arg.data;
}
function RejectMessage(arg, options) {
  if (!arg) {
    arg = {};
  }
  Message.call(this, options);
  this.command = 'reject';
  this.message = arg.message;
  this.ccode = arg.ccode;
  this.reason = arg.reason;
  this.data = arg.data;
}
function RejectMessage ( arg , options ) { if ( ! arg ) { arg = { } ; } Message . call ( this , options ) ; this . command = 'reject' ; this . message = arg . message ; this . ccode = arg . ccode ; this . reason = arg . reason ; this . data = arg . data ; }
The reject message is sent when messages are rejected.

@see https://en.bitcoin.it/wiki/Protocol_documentation#reject
@param {Object=} arg - properties for the reject message
@param {String=} arg.message - type of message rejected
@param {Number=} arg.ccode - code relating to rejected message
@param {String=} arg.reason - text version of reason for rejection
@param {Buffer=} arg.data - Optional extra data provided by some errors.
@param {Object} options
@extends Message
@constructor
The reject message is sent when messages are rejected .