|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpatterntesting.exception.net.SocketExceptionHelper
public final class SocketExceptionHelper
The Class SocketExceptionHelper with some utility methods for better SocketExceptions or NoRouteToHostExceptions.
| Method Summary | |
|---|---|
static NoRouteToHostException |
getBetterNoRouteToHostException(NoRouteToHostException e,
URLConnection connection)
If the given NoRouteToHostException has only the default message ("No route to host") this message will be replaced by a better one. |
static SocketException |
getBetterSocketException(SocketException e,
URLConnection connection)
The given SocketException is checked if it contains the host in the error message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static NoRouteToHostException getBetterNoRouteToHostException(NoRouteToHostException e,
URLConnection connection)
e - the original NoRouteToHostExceptionconnection - the connection
public static SocketException getBetterSocketException(SocketException e,
URLConnection connection)
e - the original SocketExceptionconnection - the URLConnection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||