Package liquibase.sdk.exception

Examples of liquibase.sdk.exception.UnexpectedLiquibaseSdkException


                    File dir = new File(dirs.nextElement().toURI());
                    findClasses(packageName, dir);
                }
            }
        } catch (Exception e) {
            throw new UnexpectedLiquibaseSdkException(e);
        }

        for (Class clazz : allClasses) {
            if (Modifier.isAbstract(clazz.getModifiers()) || Modifier.isInterface(clazz.getModifiers())) {
                continue;
View Full Code Here


        this.mainApp = mainApp;

        this.vagrantPath = this.mainApp.getPath("vagrant.exe", "vagrant.bat", "vagrant.sh", "vagrant");

        if (vagrantPath == null) {
            throw new UnexpectedLiquibaseSdkException("Cannot find vagrant in " + mainApp.getPath());
        }

        mainApp.debug("Vagrant path: " + vagrantPath);
    }
View Full Code Here

    private File copyFile(String sourcePath, File outputDir) throws Exception {
        outputDir.mkdirs();

        InputStream input = this.getClass().getClassLoader().getResourceAsStream(sourcePath);
        if (input == null) {
            throw new UnexpectedLiquibaseSdkException("Missing source file: "+sourcePath);
        }
        BufferedReader reader = new BufferedReader(new InputStreamReader(input));

        String fileName = sourcePath.replaceFirst(".*/", "");
        File file = new File(outputDir, fileName);
View Full Code Here

                return "winx64_12c_database";
            } else {
                return "linuxamd64_12c_database";
            }
        } else {
            throw new UnexpectedLiquibaseSdkException("Unsupported oracle version: "+getVersion());
        }
    }
View Full Code Here

    public String getOracleHome() {
        if (getVersion().startsWith("12.")) {
            return getInstallDir()+getFileSeparator()+"12c";
        } else {
            throw new UnexpectedLiquibaseSdkException("Unsupported oracle version: "+getVersion());
        }
    }
View Full Code Here

        return columnConfigs;
    }

    protected Collection<? extends String> getTestValues(String param, Database database) {
        throw new UnexpectedLiquibaseSdkException("Unexpected param: "+param);
    }
View Full Code Here

                }
            }
        }

        if (cleanupError != null) {
            throw new UnexpectedLiquibaseSdkException("Cleanup error", cleanupError);
        }

        save(test);
    }
View Full Code Here

                for (Change prepareChange : changes) {
                    ExecutorService.getInstance().getExecutor(database).execute(prepareChange);
                }
            }
        } catch (Exception e) {
            throw new UnexpectedLiquibaseSdkException("Error executing change supplier prepareDatabase" + supplier.getClass().getName() + ": " + e.getMessage(), e);
        }
    }
View Full Code Here

                for (Change revertChange : changes) {
                    ExecutorService.getInstance().getExecutor(database).execute(revertChange);
                }
            }
        } catch (Exception e) {
            throw new UnexpectedLiquibaseSdkException("Error executing change supplier prepareDatabase" + supplier.getClass().getName() + ": " + e.getMessage(), e);
        }
    }
View Full Code Here

        String supplierClassName = change.getClass().getName().replaceFirst("(.*)\\.(\\w+)", "$1\\.supplier\\.$2Supplier");
        try {
            Class supplierClass = Class.forName(supplierClassName);
            return (ChangeSupplier) supplierClass.newInstance();
        } catch (ClassNotFoundException e) {
            throw new UnexpectedLiquibaseSdkException("No change supplier class " + supplierClassName);
        } catch (InstantiationException e) {
            throw new UnexpectedLiquibaseSdkException("Error instantiating supplier class " + supplierClassName);
        } catch (IllegalAccessException e) {
            throw new UnexpectedLiquibaseSdkException("Error instantiating supplier class " + supplierClassName);
        }
    }
View Full Code Here

TOP

Related Classes of liquibase.sdk.exception.UnexpectedLiquibaseSdkException

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.