Package com.imaginea.mongodb.exceptions

Examples of com.imaginea.mongodb.exceptions.ApplicationException


                            assert (collectionList.contains(collectionName));
                            // drop this collection
                            mongoInstance.getDB(dbName).getCollection(collectionName).drop();
                        } catch (MongoException m) // while dropping Db
                        {
                            ApplicationException e = new ApplicationException(ErrorCodes.COLLECTION_CREATION_EXCEPTION, "Error Testing Collection insert", m.getCause());
                            formErrorResponse(logger, e);
                            throw e;
                        }
                        return null;
                    }
View Full Code Here


                            // Check if collection exists in the list
                            Set<String> collectionList = mongoInstance.getDB(dbName).getCollectionNames();
                            assert (!collectionList.contains(collectionName));
                        } catch (MongoException m) // while dropping Db
                        {
                            ApplicationException e = new ApplicationException(ErrorCodes.COLLECTION_DELETION_EXCEPTION, "Error Testing Collection delete", m.getCause());
                            throw e;
                        }
                        return null;
                    }
                });
View Full Code Here

                                    break;
                                }
                            }
                        } catch (MongoException m) {
                            // while dropping Db
                            ApplicationException e = new ApplicationException(ErrorCodes.GET_COLL_STATS_EXCEPTION, m.getMessage());
                            throw e;
                        }
                        return null;
                    }
                });
View Full Code Here

                                }
                            }
                            mongoInstance.dropDatabase(dbName);
                        }
                    } catch (MongoException m) {
                        ApplicationException e = new ApplicationException(ErrorCodes.GET_DB_LIST_EXCEPTION, "GET_DB_LIST_EXCEPTION", m.getCause());
                        throw e;
                    }
                    return null;
                }
            });
View Full Code Here

                            }

                        }

                    } catch (MongoException m) {
                        throw new ApplicationException(ErrorCodes.GET_COLL_STATS_EXCEPTION, m.getMessage());
                    }
                    return null;
                }
            });
        }
View Full Code Here

TOP

Related Classes of com.imaginea.mongodb.exceptions.ApplicationException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.