index.js
function CommandError (err) {
  this.name = 'CommandError'
  this.command = err.command
  this.message = err.message
  this.stack = err.stack
  this.buffer = err.buffer
  this.status = err.status
  Error.captureStackTrace(this, CommandError)
}
function CommandError (err) {
  this.name = 'CommandError'
  this.command = err.command
  this.message = err.message
  this.stack = err.stack
  this.buffer = err.buffer
  this.status = err.status
  Error.captureStackTrace(this, CommandError)
}
function CommandError ( err ) { this . name = 'CommandError' this . command = err . command this . message = err . message this . stack = err . stack this . buffer = err . buffer this . status = err . status Error . captureStackTrace ( this , CommandError ) }
> Construct `CommandError`.

@param {Object} `err`
@api private
> Construct CommandError .