Package org.apache.tuscany.sca.binding.corba.testing.exceptions.CalcPackage

Examples of org.apache.tuscany.sca.binding.corba.testing.exceptions.CalcPackage.Arguments


    private static final long serialVersionUID = 1L;

    public double div(double arg1, double arg2) throws DivByZero {
        if (arg2 == 0) {
            DivByZero exception = new DivByZero();
            exception.arguments = new Arguments(arg1, arg2);
            exception.info = "Error occured during div: div by zero";
            throw exception;
        } else {
            return arg1 / arg2;
        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.binding.corba.testing.exceptions.CalcPackage.Arguments

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.