Package Compilers.Exceptions

Examples of Compilers.Exceptions.CompilationInternalServerErrorException


            case 2:
                return e.getErrorStream();
            case 1:
                return e.getInputStream();
            default:
                throw new CompilationInternalServerErrorException("Compilation output file descriptor is incorrect: got " + fd + ", exptected 1 or 2; language id is " + lang);
        }
    }
View Full Code Here


            } catch (ProcessNotRunningException ex) {
                ex.printStackTrace();
            } catch (InterruptedException ex) {
                ex.printStackTrace();
            }
            throw new CompilationInternalServerErrorException(
                    "Input/output error while compilation: " + e);
        } catch (ProcessExecutingException e) {
            throw new CompilationInternalServerErrorException(
                    "Compilation process running error: " + e);
        } catch (InterruptedException e) {
            throw new CompilationInternalServerErrorException(
                    "Interrupted: " + e);
        } finally {
            FileOperator.close(reader);
        }
    }
View Full Code Here

    public Compiler getCompiler(int lang) throws CompilationInternalServerErrorException {
        Compiler c = compilers.get(new Integer(lang));
        if (c != null) {
            return c;
        } else {
            throw new CompilationInternalServerErrorException("Compiler with code " + lang + " not found");
        }
    }
View Full Code Here

TOP

Related Classes of Compilers.Exceptions.CompilationInternalServerErrorException

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.