Project

General

Profile

« Previous | Next » 

Revision 9a16923a

Added by Niels Hoffmann about 13 years ago

ImageMetaData now throws IOException when not able to read an image

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/mediaMetaData/ImageMetaData.java
117 117
			throw e;
118 118
		} catch (ImageReadException e) {
119 119
			logger.error("Could not open url: " + imageUri + ". " + e.getMessage());
120
			throw new IOException(e);
120 121
		}
121 122
				
122 123
	}
......
148 149
			}
149 150
		} catch (ImageReadException e) {
150 151
			logger.warn(e.getLocalizedMessage());
152
			throw new IOException(e);
151 153
		} catch (IOException e) {
152 154
			logger.warn("The image server is not available!");
153 155
			throw e;
cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/mediaMetaData/MediaMetaData.java
17 17

  
18 18
import org.apache.http.HttpException;
19 19
import org.apache.log4j.Logger;
20
import org.apache.sanselan.ImageReadException;
20 21

  
21 22
/**
22 23
 * 
cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/mediaMetaData/MetaDataFactory.java
13 13
import java.net.URI;
14 14

  
15 15
import org.apache.http.HttpException;
16
import org.apache.sanselan.ImageReadException;
16 17

  
17 18

  
18 19
/**

Also available in: Unified diff