Revision 37920 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSProtocolHandler.java

View differences:

WMTSProtocolHandler.java
145 145
				checkFileError(file);
146 146
			} catch(WMTSException e) {
147 147
				file.delete();
148
				//We can throw an exception if a tile is wrong because the program crashes
149
				System.err.println("This tile is not available:" + file.getAbsoluteFile().toString());
148
				throw new WMTSException("This tile is not available:" + file.getAbsoluteFile().toString(), e);
150 149
			} catch(IOException e) {
151 150
				file.delete();
152
				//We can throw an exception if a tile is wrong because the program crashes
153
				System.err.println("This tile is not available:" + file.getAbsoluteFile().toString());
151
				throw new WMTSException("This tile is not available:" + file.getAbsoluteFile().toString(), e);
154 152
			}
155 153
			return file;
156 154
		} catch(IOException e) {
157
			e.printStackTrace();
158
            throw new ServerErrorException();
155
            throw new WMTSException(e);
159 156
		}
160 157
    }
161 158
    

Also available in: Unified diff