var _this = this;
module.exports.errors = {
    ID_NOT_FOUND: {
        code: 1,
        message: '_id not found',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    },
    DATA_NOT_FOUND: {
        code: 2,
        message: 'data not found',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    },
    NODE_KEY_NOT_FOUND: {
        code: 4,
        message: 'node key not found',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    },
    TREE_NOT_FOUND: {
        code: 3,
        message: 'tree not found',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    },
    NODE_HANDLER_ERROR: {
        code: 5,
        message: 'error inside node function handler',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    },
    DOMAIN_NOT_FOUND: {
        code: 6,
        message: 'data domain/table/collection name not found',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    },
    DATA_ADAPTER_NOT_FOUND: {
        code: 7,
        message: 'data factory not found',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    },
    QUERY_NOT_FOUND: {
        code: 8,
        message: 'query data supplied are not known',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    },
    INNER_QUERY_DATA_INVALID: {
        code: 9,
        message: 'inner query data must be object or primitive or function only',
        toString: function () {
            "code: " + _this.code + ", message: " + _this.message;
        }
    }
};
