Home Reference Source

core/errors/missingQuery.js

  1. import { BaseError } from './base';
  2.  
  3. export function MissingQueryError(message, debug, code, kinveyRequestId) {
  4. this.name = 'MissingQueryError';
  5. this.message = message || 'The request is missing a query string.';
  6. this.debug = debug || undefined;
  7. this.code = code || undefined;
  8. this.kinveyRequestId = kinveyRequestId || undefined;
  9. this.stack = (new Error()).stack;
  10. }
  11. MissingQueryError.prototype = Object.create(BaseError.prototype);
  12. MissingQueryError.prototype.constructor = MissingQueryError;