How to use the @feathersjs/errors.NotImplemented function in @feathersjs/errors

To help you get started, we’ve selected a few @feathersjs/errors examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Human-Connection / API / server / services / user-invites / user-invites.class.js View on Github external
async patch (id, data, params) {
    throw new errors.NotImplemented();
  }
github Human-Connection / API / server / services / status / status.class.js View on Github external
patch (id, data, params) {
    throw new errors.NotImplemented();
  }
github Human-Connection / API / server / services / user-invites / user-invites.class.js View on Github external
async update (id, data, params) {
    throw new errors.NotImplemented();
  }
github Human-Connection / Embed-API / src / services / embeds / embeds.class.js View on Github external
async update (id, data, params) {
    throw errors.NotImplemented();
  }
github Human-Connection / API / server / services / status / status.class.js View on Github external
remove (id, params) {
    throw new errors.NotImplemented();
  }
}
github feathersjs / feathers / packages / adapter-commons / src / service.ts View on Github external
const callMethod = (self: any, name: any, ...args: any[]) => {
  if (typeof self[name] !== 'function') {
    return Promise.reject(new NotImplemented(`Method ${name} not available`));
  }

  return self[name](...args);
};
github Human-Connection / Embed-API / src / services / embeds / embeds.class.js View on Github external
async create (data, params) {
    throw errors.NotImplemented();
  }
github Human-Connection / API / server / services / user-invites / user-invites.class.js View on Github external
async remove (id, params) {
    throw new errors.NotImplemented();
  }
}
github feathersjs-ecosystem / feathers-objection / src / error-handler.js View on Github external
break;

      case 408:
        feathersError = new errors.Timeout(error);
        break;

      case 409:
        feathersError = new errors.Conflict(error);
        break;

      case 422:
        feathersError = new errors.Unprocessable(error);
        break;

      case 501:
        feathersError = new errors.NotImplemented(error);
        break;

      case 503:
        feathersError = new errors.Unavailable(error);
        break;

      case 500:
      default:
        feathersError = new errors.GeneralError(error);
    }

    if (error.data) {
      feathersError.data = error.data;
    }

    throw feathersError;