- try {
- $thumb = $this->generateThumbnail($width, $height, $crop);
- } catch (UnsupportedMediaException $e) {
- // FIXME: Add "unknown media" icon or something
- } catch (ServerException $e) {
- // Probably a remote media file, maybe not available locally
- }
+ // throws exception on failure to generate thumbnail
+ $thumb = $this->generateThumbnail($width, $height, $crop);