You are facing a connection breakdown. Does this happen in 3G, WiFi or “plain” connection on a computer?
Anyway, you must assume that the connection may be lost from time to time, when writing your app. For example, with mobiles, this happens frequently in the tube, in basements, etc. With PC apps, this is less frequent but occurs sometimes.
A retry can be a good solution. And a clean error message that explains the network is not available at this moment too.
Related Posts:
- C++ network programming
- How to create PPTP connection with Java?
- How to fix java.net.SocketException: Broken pipe?
- What’s causing my java.net.SocketException: Connection reset?
- Official reasons for “Software caused connection abort: socket write error”
- java.net.SocketException: Software caused connection abort: recv failed
- What is a StackOverflowError?
- What does “connection reset by peer” mean?
- What is the proper way to handle a NumberFormatException when it is expected?
- Exception in thread “main” java.util.NoSuchElementException
- How can I solve “java.lang.NoClassDefFoundError”?
- What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it?
- What could cause java.lang.reflect.InvocationTargetException?
- JavaFX – Exception in Application start method?
- What is AF_INET, and why do I need it?
- JavaFX – Exception in Application start method? [duplicate]
- C# An established connection was aborted by the software in your host machine
- Given final block not properly padded
- What is an AssertionError? In which case should I throw it from my own code?
- EOFException – how to handle?
- Can I catch multiple Java exceptions in the same catch clause?
- Exception in thread “main” java.util.NoSuchElementException: No line found
- java.net.MalformedURLException: no protocol
- Socket Programming in C++
- “NoClassDefFoundError: Could not initialize class” error
- unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown
- Exception in thread “main” java.lang.UnsupportedClassVersionError: a (Unsupported major.minor version 51.0)
- Python [Errno 98] Address already in use
- “NoClassDefFoundError: Could not initialize class” error
- “NoClassDefFoundError: Could not initialize class” error
- Will setting a multicast destination address to FFFF.FFFF.FFFF make it a broadcast?
- Why do I get an UnsupportedOperationException when trying to remove an element from a List?
- Why do I get “Exception; must be caught or declared to be thrown” when I try to compile my Java code?
- Android – could not install *smartsocket* listener
- java.net.SocketTimeoutException: Read timed out under Tomcat
- Socket API or library for C++?
- What is difference between Errors and Exceptions?
- Causes of getting a java.lang.VerifyError
- How to create a custom exception type in Java?
- Python ConnectionRefusedError: [Errno 61] Connection refused
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- java.net.SocketException: Connection reset
- What does socket binding mean?
- Cannot assign requested address using ServerSocket.socketBind
- Exception in thread “main” java.lang.ArithmeticException: / by zero
- Why is my method undefined for the type object?
- Java can’t find file when running through Eclipse
- FXML Load exception
- StringIndexOutOfBoundsException String index out of range: 0
- java.lang.ClassNotFoundException:com.mysql.jdbc.Driver [duplicate]
- Connection Java – MySQL : Public Key Retrieval is not allowed
- Why is a ConcurrentModificationException thrown and how to debug it
- Exception in thread “main” java.net.ConnectException: Connection refused: connect Socket Programming Java
- Throwing multiple exceptions in Java
- Java simple code: java.net.SocketException: Unexpected end of file from server
- java.lang.ArrayIndexOutOfBoundsException: 0
- Getting the IP address of the current machine using Java
- Handling a timeout error in python sockets
- How can I read a text file in Android?
- Exception is never thrown in body of corresponding try statement
- What is the meaning of “sin_addr.s_addr ” and “inet_addr”?
- How can I catch all the exceptions that will be thrown through reading and writing a file?
- What does Java option -Xmx stand for? [duplicate]
- Manually raising (throwing) an exception in Python
- How do I convert a String to an int in Java?
- What does Java option -Xmx stand for? [duplicate]
- Is there an invisible character that is not regarded as whitespace?
- Problem with gif with transparent background
- Finding white rectangle in an image
- 1000 * 60 * 60 * 24 * 30 results in a negative number [duplicate]
- How to convert nanoseconds to seconds using the TimeUnit enum?
- Search for words with telephone numbers from 2-3-4 tree
- Using or ‘|’ in regex [duplicate]
- How to format strings in Java
- What is the difference between x86 and x64
- && (AND) and || (OR) in IF statements
- How to use the toString method in Java?
- What is a NullPointerException, and how do I fix it?
- What exactly is Apache Camel?
- Unable to find valid certification path to requested target – error even after cert imported
- Unable to find valid certification path to requested target – error even after cert imported
- What is the equivalent of the C++ Pair
in Java? - Java – Convert integer to string [duplicate]
- Getting random numbers in Java [duplicate]
- What is an instance variable in Java?
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- javac is not recognized as an internal or external command, operable program or batch file [closed]
- Java: “error: cannot find symbol”
- How does the Java ‘for each’ loop work?
- Which is the difference between Long.valueOf(0) and 0L in Java?
- What are the differences between a HashMap and a Hashtable in Java?
- Use of “instanceof” in Java [duplicate]
- How to use Collections.sort() in Java?
- How to uninstall Eclipse?
- Is GNU’s Java Compiler (GCJ) dead? [closed]
- How does System.out.print() work?
- How do I “decompile” Java class files? [closed]
- How do I determine whether an array contains a particular value in Java?
- How to initialize an array in Java?
- How does the Java ‘for each’ loop work?