Package net.sourceforge.marathon.api

Examples of net.sourceforge.marathon.api.MarathonException


                Throwable err = e.getTargetException();
                if (err instanceof RuntimeException)
                    throw (RuntimeException) err;
                if (err instanceof Error)
                    throw (Error) err;
                throw new MarathonException("error during swing invocation", err);
            }
        }
        if (throwException != null)
            throw new RuntimeException(throwException);
        return returnValue;
View Full Code Here


            this.process = launchVM(profile, logViewLogger);
        } catch (Throwable t) {
            if (process != null)
                process.destroy();
            t.printStackTrace();
            throw new MarathonException("error creating Java Runtime: " + t.getMessage(), t);
        }
        return new JavaRuntimeLeash(client, process, console, logViewLogger);
    }
View Full Code Here

            Throwable err = e.getTargetException();
            if (err instanceof RuntimeException)
                throw (RuntimeException) err;
            if (err instanceof Error)
                throw (Error) err;
            throw new MarathonException("error during swing invocation", err);
        }
    }
View Full Code Here

    private ComponentFinder createResolver(boolean isRecording) {
        try {
            return new ComponentFinder(isRecording, windowMonitor.getNamingStrategy(), new ResolversProvider(), scriptModel,
                    windowMonitor);
        } catch (Exception e) {
            throw new MarathonException("instantiating component resolver: " + e.getMessage(), e);
        }
    }
View Full Code Here

        Class<?> mainClass = null;
        try {
            mainClass = getClass().getClassLoader().loadClass(mainClassName);
        } catch (ClassNotFoundException e1) {
            e1.printStackTrace();
            throw new MarathonException(e1.getMessage() + " in " + getMainClass() + ".main()", e1);
        }
        Method main = null;
        try {
            main = mainClass.getMethod("main", new Class[] { String[].class });
        } catch (SecurityException e1) {
            e1.printStackTrace();
            throw new MarathonException(e1.getMessage() + " in " + getMainClass() + ".main()", e1);
        } catch (NoSuchMethodException e1) {
            e1.printStackTrace();
            throw new MarathonException(e1.getMessage() + " in " + getMainClass() + ".main()", e1);
        }
        try {
            main.invoke(null, new Object[] { args });
        } catch (InvocationTargetException e) {
            Throwable cause = e.getTargetException();
            throw new MarathonException(cause.getMessage() + " in " + getMainClass() + ".main()", cause);
        } catch (Exception e) {
            throw new MarathonException(e.getMessage() + " in " + getMainClass() + ".main()", e);
        }
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.marathon.api.MarathonException

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.