imf-data-nodejs-sdk
Version:
IMFData Cloudant Node.js SDK
53 lines (45 loc) • 1.57 kB
JavaScript
/**
* Copyright 2015 IBM Corp. All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var util = require('util'),
errs = require('errs'),
i18n = require('i18next');
/**
* Error in IMFData configuration
*/
function IMFData_CONFIG() {
this.message = i18n.t('errors.config');
}
util.inherits(IMFData_CONFIG, Error);
errs.register(IMFData_CONFIG);
/**
* Error for set_permissions payload
*/
function IMFData_SET_PERMISSIONS() {
this.message = i18n.t('errors.set_permissions');
}
util.inherits(IMFData_SET_PERMISSIONS, Error);
errs.register(IMFData_SET_PERMISSIONS);
/**
* Error for remove_permissions payload
*/
function IMFData_REMOVE_PERMISSIONS() {
this.message = i18n.t('errors.remove_permissions');
}
util.inherits(IMFData_REMOVE_PERMISSIONS, Error);
errs.register(IMFData_REMOVE_PERMISSIONS);
exports.IMFData_CONFIG = IMFData_CONFIG;
exports.IMFData_SET_PERMISSIONS = IMFData_SET_PERMISSIONS;
exports.IMFData_REMOVE_PERMISSIONS = IMFData_REMOVE_PERMISSIONS;