Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7596401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:54:35+00:00 2026-05-30T21:54:35+00:00

In my application i am trying to handles Exceptions that can arise from consuming

  • 0

In my application i am trying to handles Exceptions that can arise from consuming http web services , as i know so far there are 3 types of exceptions that can arise

  • Transport Exception
  • Protocol Exception
  • Timeout Exception

i am using HttpClient class in my android application ,
i don’t have to supply login credential as a part of my http request so i think the Protocol Exception is rarely to occur , i know its not the only reason that a protocol exception can occur but its the most commonly one ,

for the transport exception i read that HttpClient is a robust to handle transport exception so it defects transport exception and retrying requests ,

so now for the timeout exception ( connections time out and socket time out ) is retrying the request is the proper way to handle these exception ? or there is more robust solution ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:54:36+00:00Added an answer on May 30, 2026 at 9:54 pm

    You should not get any timeoutexception if you don’t set the associated properties in your http request. They are set to 0 by default and that means there is no timeout.

    But giving an appropriate timeout and handling the exception as you propose to do it seems to be the right way.

    Maybe you should also consider adding some code to detect network state.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get the window handles to a Delphi application from an
I am trying to develop a client application that calls a RESTful web service.
I currently have a web application project that also includes web services within the
First off: I know that this isn't reliable for actually checking if I can
I am trying to handle exceptions in my application. I am trying to log
I'm trying to trap any and all exceptions in a C++/CLI app so that
I'm trying to make a Flex-based desktop application consume messages from an ActiveMQ topic
I've a few web methods that I use to call some external services like
I've recently taken an existing ASP.NET 3.5 web forms application that was upgraded to
I am trying to invoke the native application for MEDIA content, so I can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.