lib/errors/apierror.js
function APIError(message, type, field) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.name = 'APIError';
  this.message = message;
  this.type = type;
  this.field = field;
}
function APIError(message, type, field) {
  Error.call(this);
  Error.captureStackTrace(this, arguments.callee);
  this.name = 'APIError';
  this.message = message;
  this.type = type;
  this.field = field;
}
function APIError ( message , type , field ) { Error . call ( this ) ; Error . captureStackTrace ( this , arguments . callee ) ; this . name = 'APIError' ; this . message = message ; this . type = type ; this . field = field ; }
`APIError` error.

@constructor
@param {string} [message]
@param {string} [type]
@param {string} [field]
@access public
APIError error .