Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / tools / admin / RemoteIOException.java
blob6403fe041fcdfa3ca5c9111443d78ea1fa39925d
1 package com.google.appengine.tools.admin;
3 import java.io.IOException;
5 /**
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) {
13 this(message, null);
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;
23 } else {
24 return from(ioe, ioe.getMessage());
28 static RemoteIOException from(IOException ioe, String message) {
29 return new RemoteIOException(message, ioe);