Package booton.translator

Examples of booton.translator.TranslationError


            throw e; // rethrow assertion error
        } catch (ScriptException e) {
            dumpCode(source);

            Source code = new Source(source.getSimpleName(), Javascript.getScript(source).write());
            TranslationError error = new TranslationError(e);
            error.write(code.findBlock(e.getFailingLineNumber()));

            throw error;
        } catch (Throwable e) {
            dumpCode(source);

            TranslationError error = new TranslationError(e);
            throw error;
        }
    }
View Full Code Here


                } else {
                    // error in boot.js
                    int number = e.getFailingLineNumber();

                    if (number != -1) {
                        TranslationError error = new TranslationError(e);
                        error.write(code.findBlock(number));
                        throw error;
                    } else {
                        throw I.quiet(e);
                    }
                }
            } else {
                // error in test script
                TranslationError error = new TranslationError(e);
                error.write(code.findBlock(e.getFailingLineNumber()));
                throw error;
            }
        } catch (Throwable e) {
            throw I.quiet(e);
        }
View Full Code Here

TOP

Related Classes of booton.translator.TranslationError

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.