Package com.proofpoint.discovery.client

Examples of com.proofpoint.discovery.client.DiscoveryException


                int statusCode = response.getStatusCode();
                if (statusCode == 404 && servicesEmpty) {
                    statusCode = 200;
                }
                if (!isSuccess(statusCode)) {
                    throw new DiscoveryException(String.format("Announcement failed with status code %s: %s", statusCode, getBodyForError(response)));
                }

                return extractMaxAge(response);
            }
        });
View Full Code Here


        @Override
        public final T handleException(Request request, Exception exception)
        {
            if (exception instanceof InterruptedException) {
                throw new DiscoveryException(name + " was interrupted");
            }
            if (exception instanceof CancellationException) {
                throw new DiscoveryException(name + " was canceled");
            }
            if (exception instanceof DiscoveryException) {
                throw (DiscoveryException) exception;
            }

            throw new DiscoveryException(name + " failed", exception);
        }
View Full Code Here

TOP

Related Classes of com.proofpoint.discovery.client.DiscoveryException

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.