1 package com
.google
.appengine
.tools
.admin
;
3 import java
.io
.IOException
;
6 * An exception that occurs while communicating with remote servers.
8 * @see LocalIOException
9 * @author emcmanus@google.com (Éamonn McManus)
11 class RemoteIOException
extends IOException
{
12 RemoteIOException(String message
) {
16 RemoteIOException(String message
, Throwable cause
) {
17 super(message
, cause
);
20 static RemoteIOException
from(IOException ioe
) {
21 if (ioe
instanceof RemoteIOException
) {
22 return (RemoteIOException
) ioe
;
24 return from(ioe
, ioe
.getMessage());
28 static RemoteIOException
from(IOException ioe
, String message
) {
29 return new RemoteIOException(message
, ioe
);