} catch (IOException e) {
String message = e.getMessage();
if (message != null && message.startsWith("No space")) {
// This is a hack, but it seems to be the only way to check
// which exception it is.
throw new DropboxLocalStorageFullException();
} else {
/*
* If the output stream was closed, we notify the caller
* that only part of the file was copied. This could have
* been because this request is being intentionally