Package ariba.util.core

Examples of ariba.util.core.WrapperRuntimeException


                    doesn't throw any IOException or ServletException. But in case later
                    it will do it, we don't want to catch these by mistake. That's why there is
                    this instanceof test
                */
                if (throwable instanceof WrapperRuntimeException) {
                    WrapperRuntimeException wrapperException = (WrapperRuntimeException)throwable;
                    Exception originalException = wrapperException.originalException();
                    if (originalException != null && (originalException instanceof java.net.SocketException ||
                        originalException.getClass().getName().equals(
                            "org.apache.catalina.connector.ClientAbortException"))) {
                        // ignore all "Connection reset by peer"
                    }
View Full Code Here


                    _manager.recordingFullResponseOutputStream();
            }
        }
        catch (IOException ex) {
            ex.printStackTrace();
            throw new WrapperRuntimeException(ex);
        }
    }
View Full Code Here

                _recordingFullResponseOutputStream.write(line.getBytes());
            }
        }
        catch (IOException ex) {
            ex.printStackTrace();
            throw new WrapperRuntimeException(ex);
        }
    }
View Full Code Here

                    ? (Exception)throwable
                    : new AWGenericException(throwable);

            boolean ignore = false;
            if (runtimeException instanceof WrapperRuntimeException) {
                WrapperRuntimeException wrapperException =
                    (WrapperRuntimeException)runtimeException;
                Exception originalException = wrapperException.originalException();
                if (originalException instanceof java.net.SocketException) {
                    String message = originalException.getMessage();
                    if (message.startsWith("Connection reset by peer")) {
                        ignore = true;
                    }
View Full Code Here

            buffer.append(MappingSectionEndMark);
            try {
                semanticKeys = buffer.toString().getBytes(I18NUtil.EncodingUTF8);
            }
            catch (IOException ex) {
                throw new WrapperRuntimeException(ex);
            }

            response._debugSetSemanticKeyMapping(semanticKeys);
        }
        return semanticKeys;
View Full Code Here

        }
        Collection col;
        try {
            col = (Collection)type.newInstance();
        } catch (InstantiationException e) {
            throw new WrapperRuntimeException(e);
        } catch (IllegalAccessException e) {
            throw new WrapperRuntimeException(e);
        }
        return col;
    }
View Full Code Here

        public void addTo (Object obj, Object val)
        {
            try {
                _adderMethod.invoke(obj, val);
            } catch (IllegalAccessException e) {
                throw new WrapperRuntimeException(e);
            } catch (InvocationTargetException e) {
                throw new WrapperRuntimeException(e);
            }
        }
View Full Code Here

        public void removeFrom (Object obj, Object val)
        {
            try {
                _removerMethod.invoke(obj, val);
            } catch (IllegalAccessException e) {
                throw new WrapperRuntimeException(e);
            } catch (InvocationTargetException e) {
                throw new WrapperRuntimeException(e);
            }
        }
View Full Code Here

        String fullUrl = resource.fullUrl();
        try {
            return URLUtil.makeURL(fullUrl);
        }
        catch (MalformedURLException e) {
            throw new WrapperRuntimeException(e);
        }
    }
View Full Code Here

                                                          protectionDomain);
                Class newClass = SharedByteArrayClassLoader.loadClass(className);
                return newClass;
            }
            catch (ClassNotFoundException classNotFoundException) {
                throw new WrapperRuntimeException(classNotFoundException);
            }
        }
View Full Code Here

TOP

Related Classes of ariba.util.core.WrapperRuntimeException

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.