Package Framework

Examples of Framework.DistributedAccessException


                t.setDaemon(true);
                t.start();

            }
        } catch (SocketException e) {
            DistributedAccessException errorVar = new DistributedAccessException("Failed to avertise using " + pParam, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        } catch (IOException e) {
            DistributedAccessException errorVar = new DistributedAccessException("Failed to avertise using " + pParam, e);
            ErrorMgr.addError(errorVar);
            throw errorVar;
        }

    }
View Full Code Here


                    break;
                }
            }

            if (error == true) {
                DistributedAccessException ex = new DistributedAccessException();
                txt = new TextData(FrameworkUtils.getClassName(type,false));

                ex.setWithParams(Framework.Constants.SP_ER_USER, new TextData(Application.getMsgCatalog().getString(Constants.HTTP_SET, Constants.HTTP_MSG_FACTORY_NOT_HTTP_MESSAGE)), txt, txt2, (DataValue)null, (DataValue)null, (DataValue)null, (DataValue)null, (DataValue)null, (DataValue)null, (DataValue)null);
                throw ex;
            }
        }

        if (typeInstance instanceof HTTPBaseRequest) {
View Full Code Here

        if (((Object) session) instanceof HTTPSession) {
            this.session = (HTTPSession) session;
            session.setbaseMessage(this);
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData className = new TextData();

            if (session != null) {
                className.setValue(FrameworkUtils.getClassName(((Object) session).getClass()));
            }
            String message = Application.getMsgCatalog().getString(
                  Constants.HTTP_SET,
                  Constants.HTTP_MSG_NOT_HTTP_SESSION);
            ex.setWithParams( Framework.Constants.SP_ER_USER, message, className);
            throw ex;
        }
    }
View Full Code Here

        if (this.majorVersion == 1
                && (this.minorVersion == 1 || this.minorVersion == 0)) {
            this.minorVersion = minor;
            this.majorVersion = major;
        } else {
            DistributedAccessException ex = new DistributedAccessException();
            TextData txtVersion = new TextData(this.majorVersion,
                    TextData.qq_Resolver.cINTEGERVALUE);

            txtVersion.concat(".");
            txtVersion.concat(this.minorVersion);

            String message = Application.getMsgCatalog().getString(
              Constants.HTTP_SET,
              Constants.HTTP_MSG_VERSION_NOT_SUPPORTED);
            ex.setWithParams( Framework.Constants.SP_ER_USER, message, txtVersion);
            throw ex;
        }
    }
View Full Code Here

            try {
                return targetObjectMethod.invoke(targetObject, args);
            }
            catch (InvocationTargetException e) {
                if (e.getCause() instanceof RemoteException) {
                    DistributedAccessException errorVar = new DistributedAccessException(e.getCause());
                    ErrorMgr.addError(errorVar);
                    throw errorVar;
                }
                throw e.getCause();
            }
View Full Code Here

            try {
                return targetObjectMethod.invoke(targetObject, args);
            }
            catch (InvocationTargetException e) {
                if (e.getCause() instanceof RemoteException) {
                    DistributedAccessException errorVar = new DistributedAccessException(e.getCause());
                    ErrorMgr.addError(errorVar);
                    throw errorVar;
                }
                throw e.getCause();
            }
View Full Code Here

TOP

Related Classes of Framework.DistributedAccessException

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.